intrinsic function in cobol? compilation error

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
malikiitian
Member
Posts: 3
Joined: Tue Aug 04, 2009 5:15 pm

intrinsic function in cobol? compilation error

Post by malikiitian » Tue Aug 04, 2009 5:18 pm

COMPUTE VAR1 = FUNCTION NUMVAL(VAR2)


While using cobol intrinsic function i have been getting compilation error for the code written above.
var1 is pic S9(5).99 and var2 is X(7).

error message is:


IGYPS0086-I "FUNCTION" was specified as an informational word in the current reserved word table. The reserved word table used may be different from the IBM-supplied default. Refer to VS COBOL II Application Programming Language Reference for information on reserved words.

IGYPS2121-S "FUNCTION" was not defined as a data-name. The statement was discarded.

IGYPS2072-S "NUMVAL" was invalid.

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

Post by Natarajan » Tue Aug 04, 2009 6:05 pm

which version of cobol compiler your are using?
Natarajan
Chennai

malikiitian
Member
Posts: 3
Joined: Tue Aug 04, 2009 5:15 pm

Post by malikiitian » Wed Aug 05, 2009 11:55 am

cobol compiler is VS cobol II release 4

malikiitian
Member
Posts: 3
Joined: Tue Aug 04, 2009 5:15 pm

Post by malikiitian » Wed Aug 05, 2009 3:19 pm

COMPILER VERSION AND RELEASE DATE IS

IBM VS COBOL II Release 4.0 09/15/92

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

function numval in cobol - ibm manual cobol

Post by Natarajan » Wed Aug 05, 2009 9:11 pm

OS/VS COBOL and VS/COBOL II wont support FUNCTIONS.


Refer ibm manual for VS COBOL II

http://publibz.boulder.ibm.com/cgi-bin/ ... 0312093006
Natarajan
Chennai

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others