Hi Folks,
Trying to pass the data from JCL to COBOL using parm parameter. I haven't declared linkage section in the COBOL program
Does it throw compilation error or run time error or runs successfully?
Please clarify
Thanks
Linkage section is not declared
-
- Posts: 19
- Joined: Mon Apr 30, 2018 5:47 pm
- Skillset: Mainframes
- Referer: Friends
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: Linkage section is not declared
Your question falls into the category "easily answered by running a simple test". If you haven't done so, why not?
-
- Posts: 19
- Joined: Mon Apr 30, 2018 5:47 pm
- Skillset: Mainframes
- Referer: Friends
Re: Linkage section is not declared
Sorry, currently I don't have access to mainframe server
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: Linkage section is not declared
The compile fails with an IGYPA3067-S
A severe error such as this (that's what the -S means after the message ID) sets the return code to 12 so the linkage edit will not execute and the program will not execute.Operand <variable name> was not defined in the "LINKAGE SECTION". The statement was discarded.
-
- Posts: 19
- Joined: Mon Apr 30, 2018 5:47 pm
- Skillset: Mainframes
- Referer: Friends
Re: Linkage section is not declared
Thanks Robert