Joined: 11 May 2005 Posts: 14 Location: Bangalore, India
In the JCL you can pass the parameters as a control card or you can use teh PARM option.
And in the PL/1 code you can recieve it in the module like this.
1 THREE_YR_RET_ARRAY(19) CONN,
and then when you run the step in the JCL then automatically your parms which you have passed in the JCL will come into THREE_YR_RET_ARRAY and YR_PARM and you can use it in your module for further processing.
(1) It doesn't look like a MAIN program.I don't think,value could be passed from JCL PARM option to a SUB program.
(2)In THREE_YR_RET_ARRAY(19) declaration, what does CONN mean? Hope it doesn't mean CONTROLLED storage(CTL).
(3)What is the need for showing INCLUDE here,in this example?
Do correct me for mistake(s),if any.
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
Whatever data is input by PARM parameter in JCL is used in the PL/1 pgm as such or as usual, no matter if DB2 is used or not.Let us know if you are looking for something more specific.