How to Continue JCL Code in next line

JCL code can continue in the below line if it is not fit in the same line. These are my ideas on how to do it correctly.


1.JCL rules to continue in the next line

  1. First, break the parameter field after the comma that follows a parameter or sub-parameter (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 sub-parameter beginning anywhere in columns 4 through 16 (be careful not to start beyond column 16).
  4. 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.
  5. If you look at the two examples of coding continuation lines, you’ll see that both use the same DD statement.
  6. 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.
  7. 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.
JCL Continuation

2. How to continue JCL Parameters to Continue to Next Line

1. Write Each Parameter in Separate Line

// VOL=SER=MPS800,
// SPACE=(CYL,(1,1)),

2. Write Two Parameters in Single Line

// SPACE=(CYL,(1,1)),

3. JCL continuation in SYSIN.

This kind of continuation also called JCL DD continuation or In-stream continuation. You can continue in SYSIN by using keyword


4. JCL continuation in STEPS.

You should not code apostrophe ”’ in column 71. Else, even though you have continuation it ignores. You can follow these tips to PARM parameter continuation.

5. JCL statements cannot be continued.

Positional parameters you cannot continued to next line.

Related Posts

Author: Srini

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