Joined: 12 Oct 2005 Posts: 1 Location: The land of OZ
I am a self taught JCL writter and need a bit of assistance. I am using a jcl to create a jcl and receiving a syntax error because my statement is too long.
OPTION COPY
INCLUDE COND=(1,7,ZD,EQ,2999999,&,29,5,ZD,EQ,99999,&,10,6,CH,NE,C'999999',OR,
1,7,ZD,EQ,1010742,&,29,5,ZD,EQ,01848,&,10,6,CH,NE,C'000618',OR,
$
This work if I manually wrap the condition it will work:
INCLUDE COND=(1,7,ZD,EQ,2999999,&,29,5,ZD,EQ,99999,&,10,6,CH,
NE,C'999999',OR,
1,7,ZD,EQ,1010742,&,29,5,ZD,EQ,01848,&,10,6,CH,
NE,C'000618')
What can I add to my jcl to automatically wrap the line? OR How can I get this to work?
Thank you in advance for your expert advise!!!
[/right]
You can break the string with a dash (-) in column 73.
Code:
OPTION COPY
INCLUDE COND=(1,7,ZD,EQ,2999999,&,29,5,ZD,EQ,99999,&,10,6,CH,NE,C'9999-
99',OR,1,7,ZD,EQ,1010742,&,29,5,ZD,EQ,01848,&,10,6,CH,NE,C'000618')