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


Convert procedures to jobs (optional)

z/OS MVS JCL Reference
SA23-1385-00

You may decide to convert some of your existing started task procedures to jobs. Before doing so, you should understand how the started task JCL and processing will change.

If the following command is issued for a started task procedure:
S DUMPCHK,SG=ALL,JDATE=93119,DAY=THURSDAY
and the procedure being started is:
//DUMPCHK  PROC SG=ALL,JDATE=,DAY=
//DUMPCHK  EXEC PGM=DMPCHKO,REGION=5M,PARM='/&SG,&JDATE,&DAY'
//STEPLIB  DD   DSN=JCR.PGM.LOAD,DISP=SHR
//CDS      DD   DSN=DATAMGT.CDS,DISP=SHR
//         DD   DSN=DATAMGT.CDS.CLEAR,DISP=SHR
//         DD   DSN=DATAMGT.CDS.Y43DUMPS,DISP=SHR
//LOG      DD   DSN=SYS1.TSODUMP.LOG,DISP=SHR
//SYSPRINT DD   SYSOUT=*
MVS™ creates the following JCL to invoke this procedure:
//DUMPCHK  JOB  MSGLEVEL=1
//STARTING EXEC DUMPCHK,SG=ALL,JDATE=93119,DAY=THURSDAY

To convert an existing procedure to a job, remove the PROC and PEND statements and add a JOB statement and any other JCL you plan to use.

Note: It is important to note that if system symbols are used on the PROC statement, they cannot be overridden by the START command system symbols.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014