Building PACLOG jobs
Building a PACLOG job involves creating JCL that includes the following:
- A JOB statement
- An EXEC statement that includes a utility parameter to specify the ID of the Db2 subsystem against which the job will run
- DD statements that specify the PACLOG and Db2 load libraries
- DD statements that specify various optional and required data sets
The following descriptions provide more details. For a sample of PACLOG JCL, see Sample-jobs.
JOB statement
The JOB statement starts with a job name and includes standard JOB statement parameters, such as accounting information and a run identifier.
EXEC statement
The EXEC statement has the following format:
The parameters and values are as follows:
- PGM=ALMMAIN specifies the processing module for PACLOG.
- PARM specifies a single utility parameter, ssid, which is the ID of the Db2 subsystem against which the job will run.
- For ARMOPTS, the variable optionSet is the name of an XML file that contains the product's configuration option values. The default option set is ARM$OPTS.
- REGION=0M specifies zero megabytes for the region size. For PACLOG operations, REGION=3M is sufficient.
STEPLIB DD statement
The STEPLIB DD statement optionally identifies the PACLOG and Db2 load libraries that you want to use.
Specifying the PACLOG data set DD statements
This topic describes the data sets that PACLOG uses.
Each data set is specified by a ddname (data definition name). You must specify all required data sets in the JCL.
(Required) ALMIN
The input data set that contains one or more control statements. Attributes for this data set must be fixed-length records with a length of 80 (RECFM=F or FB, LRECL=80).
(Required) ALMPRINT
The output for messages that are returned from PACLOG. PACLOG also echoes the contents of the ALMIN data set in the ALMPRINT output. ALMPRINT can be allocated to SYSOUT or to a data set with a data control block (DCB) of LRECL=121, RECFM=VBA.
(Required) ALMOPTS
PACLOG reads the configuration options from the option set that the ARMOPTS parameter of the EXEC statement specifies. If you do not specify a value for that parameter, PACLOG uses the default option set (ARM$OPTS). You can temporarily override one or more configuration options by using the following ARMOPTS DD statement:
//ARMOPTS DD
ssid.
configurationOption=value
/*
(Required) ALMMSGS
The PACLOG messages data set created during installation with the default name of hilvl.ALM.DBCNTL(ALMMSGS). The data set must be allocated with DISP=SHR.
(Optional) BMCERROR
The output for compiler run time errors. If compiler errors are detected and BMCERROR is not present in the JCL, the errors are printed in the JES log. The data set can be allocated to SYSOUT or to a data set with a DCB of LRECL=121, RECFM=VBA.
(Optional) SYSUT1
The BSDS (either BSDS01 or BSDS02) for the subsystem named in the EXEC statement. For example //SYSUT1 DD DISP=SHR,DSN=DB21CAT.BSDS01. If it is not specified, PACLOG gets the BSDS name from the control options and dynamically allocates the BSDS.
(Optional) ALMLSTAT
A listing of the total number of records in the log for each record type. The data set can be allocated to SYSOUT or to a data set with a DCB of LRECL=133, RECFM=FBA.
(Optional) ALMOSTAT
A listing of the total number of records in the log for each Db2 object. The data set can be allocated to SYSOUT or to a data set with a DCB of LRECL=133, RECFM=FBA.
(Required) ALMLIST1
A listing of local primary archive log data sets that have been processed. The data set can be allocated to SYSOUT or to a data set with a DCB of LRECL=133, RECFM=FBA.
(Required) ALMLIST2
A listing of local secondary archive log data sets that have been processed. The data set can be allocated to SYSOUT or to a data set with a DCB of LRECL=133, RECFM=FBA.
(Optional) ALMLIST3
A listing of offsite archive log data sets for which the primary offsite copy was processed. The data set can be allocated to SYSOUT or to a data set with a DCB of LRECL=133, RECFM=FBA.
(Optional) ALMLIST4
A listing of offsite archive log data sets for which the secondary offsite copy was processed. The data set can be allocated to SYSOUT or to a data set with a DCB of LRECL=133, RECFM=FBA.
(Required) ALMXPIRE
A listing of all expired archive log data sets (those archive log data sets found in the archive history file but which no longer exist in the BSDS). The data set can be allocated to SYSOUT or to a data set with a DCB of LRECL=133, RECFM=FBA.