Posted: Tue Sep 15, 2009 11:40 am Post subject: Valid Program-ID in COBOL
Hi there,
I've been given a list of EZT programs to convert using the IBM Migration Utility. One of the EZT programs starts with a $ sign. The IBM Migration Utility converts the EZT to Cobol as part of the compiler.
But the compiler doesn't like the Program-ID and I receive the following.
Code:
IDENTIFICATION DIVISION.
PROGRAM-ID. $SYSSTAT.
IGYDS0027-S Non-COBOL character(s) were found starting with "$" in column 20.
I didn't think the dollar sign would be an issue according to this from the IBM MANUALS .....
Quote:
All the characters used in the name must be alphabetic, digits, or the hyphen, except that if the program-name is entered in the literal format and is in the outermost program, then the literal can also contain the extension characters @, #, and $.
The PGMNAME compliler option is COMPAT.
The compiler obviously doesn't like the Program-ID .... but for my own future reference - can I use non-alphanumeric characters in the program name??
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
Posted: Tue Sep 15, 2009 11:47 am Post subject:
Reading the manual, my interpretation of "literal format" means that the program-id is in quotes. Try placing the program-id in quotes. If not in literal format, the name cannot use $, #, or @. _________________ ....Terry
("." inside the quotes) then you'll get an error message because "$SYSSTAT." will be treated as ""$SYSSTAT". " which is, ofcourse, an error. _________________ Regards,
Anuj
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum