Hi,
Can someone please suggest if it is possible to create a parm variable using COBOL program and pass it to the next step of the JCL? I need to create a PARM variable in one step and use it in the following step.
Thanks,
Help in creating a PARM using COBOL.
-
- Global Moderator
- Posts: 490
- Joined: Sun Aug 25, 2013 7:24 pm
Re: Help in creating a PARM using COBOL.
No, you can't do that.
Unless your level of z/OS supports PARMDD. Then you may be able to.
Why don't you just write the data to a dataset, and read that in the next program anyway?
Unless your level of z/OS supports PARMDD. Then you may be able to.
Why don't you just write the data to a dataset, and read that in the next program anyway?
- Robert Sample
- Global Moderator
- Posts: 1895
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Help in creating a PARM using COBOL.
When a job is submitted, the first thing that happens (from the programmer's point of view) is that the job goes through the converter / interpreter which expands INCLUDE and PROC references, among other things. Once a job has gone through the C/I, it is not possible to change that job's JCL -- PERIOD. You can create the PARM and submit another job through the internal reader that uses the PARM, or -- maybe -- use PARMDD, but as William suggested your best bet is to write the data into a data set and read it in the next step (assuming you are not using a utility in that step).
Re: Help in creating a PARM using COBOL.
Thanks. I've used the suggestion of creating a intermediate dataset.
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