|
View previous topic :: View next topic
|
| Author |
Message |
madrueno
New User
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] |
|
| Back to top |
|
 |
Kevin
Active User

Joined: 25 Aug 2005 Posts: 234
|
|
|
|
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')
|
|
|
| Back to top |
|
 |
MGIndaco
Active User

Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
| Quote: |
receiving a syntax error because my statement is too long...What can I add to my jcl to automatically wrap the line? OR How can I get this to work?
|
Your statement isn't too long - it's just not properly written. The DFSORT continuation rules do not allow a statement to go beyond column 71.
There are several ways to correctly continue a statement. The simplest way is to break after a comma, e.g.
| Code: |
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,
...
|
You can also run the statement up to column 71, put a nonblank (e.g. *) in 72, and start the next statement in column 2. |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|