Examples of overriding the JCL statements in the GTF cataloged procedure

The following shows examples of setting up a cataloged procedure when you want to override JCL statements in the procedure using the keyword=option parameter on the START command. Note that the DD statement parameters in both of the following procedures are for example only; the needs of your installation might require you to provide DD parameters in addition to, or other than, DSNAME, UNIT, and DISP.

If you want to alter just one data set using the START command, your cataloged procedure could look like Figure 1.
Figure 1. Example: altering one data set
//GTFABC    PROC   MEMBER=GTFPARM
//IEFPROC   EXEC   PGM=AHLGTF,REGION=2880K,TIME=1440,
//                 PARM=('MODE=EXT,DEBUG=NO')
//IEFRDER   DD     DSNAME=SYS1.GTFTRC,UNIT=SYSDA,
//                 SPACE=(4096,20),DISP=(NEW,KEEP)
//SYSLIB    DD     DSN=SYS1.PARMLIB(&MEMBER),DISP=SHR
//GTFOUT1   DD     DSNAME=SYS1.TRACE1,UNIT=SYSDA,DISP=(NEW,KEEP)
//GTFOUT2   DD     DSNAME=SYS1.TRACE2,UNIT=SYSDA,DISP=(NEW,KEEP)
//GTFOUT3   DD     DSNAME=SYS1.TRACE3,UNIT=SYSDA,DISP=(NEW,KEEP)

Enter START GTFABC,,,UNIT=TAPE, to alter only the data set that IEFRDER defines.

If you want to alter the attributes of more than one data set with the START command, use the JCL statements in Figure 1 in your cataloged procedure.
Figure 2. Example: Altering More Than One Data Set
//GTFABC  PROC MEMBER=GTFPARM,NAME1='SYS1.TRACE1',
//             NAME2='SYS1.TRACE2',NAME3='SYS1.TRACE3',
//IEFPROC EXEC PGM=AHLGTF,REGION=2880K,TIME=1440,
//             DEVICE='SYSDA',DSPS='OLD'
//          PARM=('MODE=EXT,DEBUG=NO')
//SYSLIB  DD   DSN=SYS1.PARMLIB(&MEMBER),DISP=SHR
//GTFOUT1 DD   DSNAME=&NAME1,UNIT=&DEVICE,DISP=&DSPS;
//GTFOUT2 DD   DSNAME=&NAME2,UNIT=&DEVICE,DISP=&DSPS;
//GTFOUT3 DD   DSNAME=&NAME3,UNIT=&DEVICE,DISP=&DSPS;

Enter START GTFABC,,,DEVICE=TAPE, to override the default value of the UNIT parameter for each output data set in your cataloged procedure.

See z/OS MVS JCL Reference for more information about using symbolic parameters in JCL statements.