Page 1 of 1

read multiple input passed in COBOL

Posted: Thu Apr 18, 2024 2:09 pm
by Prakash Jha
Hi,

How to read multiple input is passed by parm parameter from jcl in COBOL program?

Re: read multiple input passed in COBOL

Posted: Thu Apr 18, 2024 7:08 pm
by Robert Sample
It is not clear what you are asking -- you'll need to provide an example so we can see what you want.  Parameters passed from JCL, in general, are available through the LINKAGE SECTION.

Re: read multiple input passed in COBOL

Posted: Mon Apr 22, 2024 4:24 pm
by Prakash Jha
If there are more than parameters passed from JCL, how do we recieve them in LINKAGE? If they are separate variable and don't belong to each other but passed in together?

Re: read multiple input passed in COBOL

Posted: Tue Apr 23, 2024 8:21 pm
by Robert Sample
You can only pass ONE parameter from JCL to COBOL.  You can parse that parameter any way you need, but it is only one parameter with one entry in the LINKAGE SECTION.