Question on Program-ID in COBOL.

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
Kapil Sharma
Registered Member
Posts: 52
Joined: Sun Sep 29, 2013 1:46 am
Location: India

Question on Program-ID in COBOL.

Post 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!
Thanks,
Kapil
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Question on Program-ID in COBOL.

Post by nicc »

What does the manual say about this?
Regards
Nic
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: Question on Program-ID in COBOL.

Post by William Collins »

Yes it is in the manual, for the first character of the program-name there are additional limits.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”