Page 1 of 1

Question on Program-ID in COBOL.

Posted: Mon Sep 21, 2015 2:01 pm
by Kapil Sharma
Hello,

We're converting some of the EZT programs to COBOL using IBM Migration Utility. While doing so, I go tthe following error from the converted program:

Code: Select all

            IDENTIFICATION DIVISION. 
            PROGRAM-ID. @ABCSPGM. 

IGYDS0027-S Non-COBOL character(s) were found starting with "@" in column 20. 

            AUTHOR. NOAUTHOR. 
            ENVIRONMENT DIVISION. 
            CONFIGURATION SECTION.
I didn't think the @ sign would be an issue but appraently it is. The PGMNAME compliler option is COMPAT.

I've made a manual change but for a reference, can not I use non-alphanumeric characters in the program name?

Thanks!

Re: Question on Program-ID in COBOL.

Posted: Mon Sep 21, 2015 2:51 pm
by nicc
What does the manual say about this?

Re: Question on Program-ID in COBOL.

Posted: Mon Sep 21, 2015 3:14 pm
by William Collins
Yes it is in the manual, for the first character of the program-name there are additional limits.