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


Examples of the PROC statement

z/OS MVS JCL Reference
SA23-1385-00

Example 1
//DEF     PROC  STATUS=OLD,LIBRARY=SYSLIB,NUMBER=777777
//NOTIFY  EXEC  PGM=ACCUM
//DD1     DD    DSNAME=MGMT,DISP=(&STATUS,KEEP),UNIT=3390,
//            VOLUME=SER=888888
//DD2     DD    DSNAME=&LIBRARY,DISP=(OLD,KEEP),UNIT=3390,
//            VOLUME=SER=&NUMBER

Three symbolic parameters are defined in this cataloged procedure: &STATUS, &LIBRARY, and &NUMBER. Values are assigned to the symbolic parameters on the PROC statement. These values are used when the procedure is called and values are not assigned to the symbolic parameters on the calling EXEC statement.

Example 2
//CARDS  PROC

This PROC statement can be used to mark the beginning of an in-stream procedure named CARDS.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014