JCL three popular ideas to continuation

A JCL statement on a single line always not possible. In that case, you can continue a statement onto a new line.

The rules for coding continuation lines are straightforward.

  1. First, break the parameter field after the comma that follows a parameter or subparameter (don’t forget to code the final comma at the end of the continued line).
  2. Second, code slashes in columns 1 and 2 of the following line.
  3. third, code the next parameter or subparameter beginning anywhere in columns 4 through 16 (be careful not to start beyond column 16).

You must always leave column 3 blank on a continuation line or the system will interpret it as a new statement and issue an error when you submit the job for processing.

If you look at the two examples of coding continuation lines, you’ll see that both use the same DD statement.

But the first one is coded with as many parameters as possible on the first line, while in the second example, there are only one or two parameters per line.

If you compare the statements, you’ll see that the second example presents a more organized and readable approach to coding JCL. It also makes the JCL easier to edit if you have to change or add parameters later on.

The below example tells you to write your JCL an awesome way that understand globally. Two ways to continue a JCL statement on more than one line

Code as many parameters on one line as possible

//DUNNING  DD   DSNAME=MM01.DUNNING.FILE,DISP=(NEW,KEEP),UNIT=SYSDA,
// VOL=SER=MPS800,SPACE=(CYL,(1,1)),DCB=(DSORG=PS,RECFM=FB,LRECL=400)

Code only one or two parameters per line

//DUNNING  DD   DSNAME=MM01.DUNNING.FILE,DISP=(NEW,KEEP),
//             UNIT=SYSDA,VOL=SER=MPS800,
//             SPACE=(CYL,(1,1)),
//             DCB=(DSORG=PS,RECFM=FB,LRECL=400)

Also read: 11 top JCL tricky Questions

Advertisements

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.

Start Discussion

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s