Setting default CM batch parameter values by using profiles
You can establish and maintain your own default values for CM batch parameters. Individual invocations of CM batch can override these default values as needed.
About this task
When the Change Management (CM) batch interface is invoked, it reads parameters from the following two files in sequence: PROFPARM DD and then PARMS DD. PROFPARM DD contains the installation default values, and PARMS DD contains the individual invocation overrides. If you do not specify any defaults, the product default values are used.
Procedure
Examples:
The following JCL procedure defines the PROFPARM file and uses the Db2® SSID to determine which parameter profile to use:
//GOCCM PROC SSID=,PLAN=,SPCUNIT=SYSDA
//PROFPARM DD DISP=SHR,DSN=USERID.SSID.PARMS(&SSID)
...
//GOCCM PEND
//DEMO JOB (&SYSUID,ICE,ICE,ICE),'DEMO',CLASS=B,
// MSGCLASS=H,MSGLEVEL=(1,1),NOTIFY=&SYSUID,TIME=(,30),
// REGION=0M
//*
/*JOBPARM S=SY4A
//*
//LSCLIBS JCLLIB ORDER=JCL.PROCLIB
//*
//GOCCM EXEC GOCCM,SSID=DSNA,PLAN=ADB
//GOCCM.PARMS DD *
/*
//GOCCM.IMCHG001 DD DISP=SHR,DSN=<DDL OR DELTA CHANGE FILE>//PROFPARM DD DISP=SHR,DSN=USERID.SSID.PARMS(DSNA) Any parameter specified in the PARMS DD file overrides the parameter values in the PROFPARM DD file.
You can also define a user-customized JCL procedure parameter that determines an additional profile to use. For example:
//GOCCM PROC SSID=,PLAN=,SPCUNIT=SYSDA,PROF=EMPTY
//PROFPARM DD DISP=SHR,DSN=USERID.SSID.PARMS(&SSID)
// DD DISP=SHR,DSN=USERID.PROF.PARMS(&PROF)
...
//GOCCM PEND
//DEMO JOB (&SYSUID,ICE,ICE,ICE),'DEMO',CLASS=B,
// MSGCLASS=H,MSGLEVEL=(1,1),NOTIFY=&SYSUID,TIME=(,30),
// REGION=0M
//*
/*JOBPARM S=SY4A
//*
//LSCLIBS JCLLIB ORDER=JCL.PROCLIB
//*
//GOCCM EXEC GOCCM,SSID=DSNA,PLAN=ADB,PROF=LARGE
//GOCCM.PARMS DD *
/*
//GOCCM.IMCHG001 DD DISP=SHR,DSN=<DDL OR DELTA CHANGE FILE>The SSID JCL parameter value is DSNA, and the user-defined JCL parameter PROF is LARGE. Therefore, the data set names for the PROFPARM DD in the JCL procedure resolve to the following definition:
//PROFPARM DD DISP=SHR,DSN=USERID.SSID.PARMS(DSNA)
// DD DISP=SHR,DSN=USERID.PROF.PARMS(LARGE)
Any parameter specified in the PARMS DD file overrides what is specified in the PROFPARM DD.
- USERID.SSID.PARMS(DSNA)
- USERID.PROF.PARMS(LARGE)
- The PARMS file