Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Jcl to create a jcl and receiving a syntax error

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
madrueno

New User


Joined: 12 Oct 2005
Posts: 1
Location: The land of OZ

PostPosted: Wed Oct 12, 2005 9:12 pm    Post subject: Jcl to create a jcl and receiving a syntax error
Reply with quote

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
View user's profile Send private message

Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Wed Oct 12, 2005 9:35 pm    Post subject: Re: jcl question...
Reply with quote

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
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Wed Oct 12, 2005 9:36 pm    Post subject:
Reply with quote

I'm not sure about your question but the $ from the sort say that an error is found at that position.

This is the link to DfSort that explain how to have a continuation:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/ICE1CG10/2.1.1.2?SHELF=ICE1SH10&DT=20050223112358

DfSort statement start at column 2 and end at column 71.

I hope in this help.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Oct 12, 2005 11:15 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us