Linkage section is not declared



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

Linkage section is not declared

Postby ravi11081992 » Thu Feb 21, 2019 11:03 pm

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
ravi11081992
 
Posts: 19
Joined: Mon Apr 30, 2018 5:47 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Linkage section is not declared

Postby Robert Sample » Thu Feb 21, 2019 11:04 pm

Your question falls into the category "easily answered by running a simple test". If you haven't done so, why not?
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Linkage section is not declared

Postby ravi11081992 » Thu Feb 21, 2019 11:12 pm

Sorry, currently I don't have access to mainframe server
ravi11081992
 
Posts: 19
Joined: Mon Apr 30, 2018 5:47 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Linkage section is not declared

Postby Robert Sample » Fri Feb 22, 2019 12:41 am

The compile fails with an IGYPA3067-S
Operand <variable name> was not defined in the "LINKAGE SECTION". The statement was discarded.
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.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Linkage section is not declared

Postby ravi11081992 » Sun Feb 24, 2019 8:08 pm

Thanks Robert
ravi11081992
 
Posts: 19
Joined: Mon Apr 30, 2018 5:47 pm
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post