Error occured when using intrinsic functions



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Error occured when using intrinsic functions

Postby maandi » Tue Mar 15, 2011 8:10 pm

Hi,

When i tried using the intrinsic functions such as

COMPUTE WS-INTEGER-DATE = FUNCTION INTEGER-OF-DAY (WS-JULIAN-DATE)

Its giving the following error message:

Error 1: Information: 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.

Error 2: Severe: FUNCTION" was not defined as a data-name. The statement was discarded.

Error 3: Severe: INTEGER-OF-DAY" was invalid. Skipped to the next verb, period or procedure-name


Does it mean its not supported by my compiler?

Thanks,
Mano
maandi
 
Posts: 20
Joined: Sat Oct 30, 2010 1:37 am
Has thanked: 0 time
Been thanked: 0 time

Re: Error occured when using intrinsic functions

Postby Robert Sample » Tue Mar 15, 2011 9:57 pm

That's exactly what the error message means.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Error occured when using intrinsic functions

Postby maandi » Wed Mar 16, 2011 6:09 pm

Ok. Thanks robert
maandi
 
Posts: 20
Joined: Sat Oct 30, 2010 1:37 am
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post