Convert procedures to jobs (optional)
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.
To invoke as existing procedure, you can choose one of the following
alternatives.
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.