While using cobol intrinsic function i have been getting compilation error for the code written below.
COMPUTE VAR1 = FUNCTION NUMVAL(VAR2)
var1 is pic S9(5).99 and var2 is X(7).
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.