How to span the PARM in JCL to next line



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

How to span the PARM in JCL to next line

Postby Mann_B » Fri Nov 18, 2011 4:05 pm

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
Mann_B
 
Posts: 79
Joined: Wed Mar 31, 2010 11:48 am
Has thanked: 0 time
Been thanked: 0 time

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

 

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

Postby Akatsukami » Fri Nov 18, 2011 4:12 pm

Check page 3-5 in the z/OS V1R11 MVS JCL Reference (note: that link is to a PDF.)
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1053
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

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

Postby Mann_B » Fri Nov 18, 2011 4:36 pm

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
Mann_B
 
Posts: 79
Joined: Wed Mar 31, 2010 11:48 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby Akatsukami » Fri Nov 18, 2011 4:46 pm

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.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1053
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post