z/OS MVS JCL Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Examples of continued statements

z/OS MVS JCL Reference
SA23-1385-00

Example 1
//DD1  DD   DSNAME=SWITCH.LEVEL18.GROUP12,UNIT=3390,
//     VOLUME=335023,SPACE=(TRK,(80,15)),DISP=(,PASS)

Example 1 shows continuation of a DD statement. The DD statement is continued from the first card image to the second card image. The comma on the first line indicates that continuation is expected.

Example 2
//DS1 DD  DSNAME=INDS,DISP=OLD,CHKPT=EOV,   MY INPUT DATA SET
//     UNIT=SYSSQ,VOLUME=SER=(TAPE01,TAPE02,TAPE03)

Example 2 shows continuation of a DD statement with a comment on the first statement. The DD statement is continued from the first card image to the second card image. The comma followed by a blank on the first line indicates that continuation is expected. The comment on the first card image is not continued to the next card image.

Example 3
//STP4  EXEC PROC=BILLING,COND.PAID=((20,LT),EVEN),
//     COND.LATE=(60,GT,FIND),
//     COND.BILL=((20,GE),(30,LT,CHGE))  THIS STATEMENT CALLS          X
//     THE BILLING PROCEDURE AND SPECIFIES RETURN CODE TESTS           X
//     FOR THREE PROCEDURE STEPS.

Example 3 shows continuation of an EXEC statement with a comment at the end that also is continued on multiple lines. The EXEC statement is continued from the first card image to the second card image. The comma followed by a blank on the first line indicates that continuation is expected. Continuation from the second card to the third uses the same logic. The comment on the third card image is continued to the next card image via an X in column 72. The comment on fourth card image is continued to the fifth card image via an X in column 72.

Example 4
//S1       EXEC PGM=IEFBR14,PARM='THIS IS A LONG PARAMETER WITHIN APOST
//             ROPHES, CONTINUED IN COLUMN 16 OF THE NEXT RECORD'

Example 4 shows continuation of a parameter field when a parameter is enclosed in apostrophes. The parameter field is continued from column 71 of the first card image to column 16 of the second.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014