Page 1 of 1

How to span the PARM in JCL to next line

PostPosted: Fri Nov 18, 2011 4:05 pm
by Mann_B
Hi All

I have a JCL ,which executes a program with PARM.
The Existing PARM value given in the JCL is close to end of line(70th column).Now I need to add another parameter in PARM.
How can I give that in second line.

Existing PARM:
PARM=(&JDT&PARM1&RUNID&CA005CA&YYYY&PARM2&PARM3&PARM4&PARM5)
(P in PARM starting from column 12 and M in &PARM% ending at 70th column)
In job the value will be :PARM='066TGT2011PYPP'

Now I need to add &PARM6 to it.When an giving as below
PARM=(&JDT&PARM1&RUNID&CA005CA&YYYY&PARM2&PARM3&PARM4&PARM5 X
&PARM6)
It s giving a JCL error 'UNBALANCED PARENTHESIS IN THE "PARM " FIELD '

Can you please let me know if there is any way we can add Parm ?

Thank You

Re: How to span the PARM in JCL to next line

PostPosted: Fri Nov 18, 2011 4:12 pm
by Akatsukami
Check page 3-5 in the z/OS V1R11 MVS JCL Reference (note: that link is to a PDF.)

Re: How to span the PARM in JCL to next line

PostPosted: Fri Nov 18, 2011 4:36 pm
by Mann_B
Hi

I have verified the Doc.I could see the PARM specified in the example is a direct value.
It is not working for my scenario where I have symbolics given in the PARM.Its actual value will be upto 10digits in JCL.When am coding PARM6 in next line ,the corresponding value is updating in next line and it is giving an error.

P1// PARM=(&JDT&PARM1&RUNID&CA005CA&YYYY&PARM2&PARM3&PARM4&PAR
P1-- PARM=(066TGT2011PYPP
***ERROR - DSS6125E - UNBALANCED PARENTHESIS IN THE "PARM " FIELD
P1// &PARM6)
***ERROR - DSS6050E - UNKNOWN OPERATOR

Re: How to span the PARM in JCL to next line

PostPosted: Fri Nov 18, 2011 4:46 pm
by Akatsukami
Well, you can't do what you want. Review the manual again; your parameter string must be composed of subparameters (i.e., contain commas) or be enclosed in apostrophes, neither of which is true in the example that you give. Go back to the programmer (the one currently responsible for the code, if the original programmer has left the building), explain the problem, and collaborate on a solution.