read multiple input passed in COBOL

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
Prakash Jha
Registered Member
Posts: 62
Joined: Sat Jun 29, 2013 1:45 pm
India

read multiple input passed in COBOL

Post by Prakash Jha »

Hi,

How to read multiple input is passed by parm parameter from jcl in COBOL program?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: read multiple input passed in COBOL

Post 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.
Prakash Jha
Registered Member
Posts: 62
Joined: Sat Jun 29, 2013 1:45 pm
India

Re: read multiple input passed in COBOL

Post 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?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: read multiple input passed in COBOL

Post 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.
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.”