Using batch processing


The following figure shows sample JCL for batch restart processing of a BMCTRIG-generated job.

See the figure as well for commented RESTART EXEC parameters.

Sample JCL for batch restart processing

 //JOBCARD JOB (XXXX),'NAME',MSGCLASS=X,CLASS=A,MSGLEVEL=(1,1)
//******************************************************************
//* Restart Procedures                                             *
//*   a) add a RESTART parameter to the Job Card                   *
//*   b) uncomment of a EXEC parameter for RESTART                 *
//*       in the step where you wish to resume                     *
//*   c) Swap the DISP parms by                                    *
//*       uncommenting the //*  DISP=SHR parm and                  *
//*       commenting the //   DISP=(NEW,CATLG,CATLG) parm          *
//******************************************************************
//STEP01 EXEC PGM=ASUBRST,
//******************************************************************
//* BATCH RESTART OF BMCTRIG GENERATED JOB                         *
//*        PARM='ASUDOPTs 000000 RESTART(PHASE)'                   *
//*               |        |       |                               *
//*     DOPTs MODULE       |       |                               *
//*     RESTART SEQUENCE NUMBER    |                               *
//*     UTILITY RESTART PARAMETER INFORMATION                      *
//*                                                                *
//*                                                                *
//* BATCH STARTOVER OF BMCTRIG GENERATED JOB                       *
//*                                                                *
//*       PARM='ASUDOPTs STARTOVER'                                *
//*               |        |                                       *
//*     DOPTs MODULE       |                                       *
//*        STARTOVER KEYWORD                                       *
//******************************************************************
//STEPLIB DD   DISP=SHR,DSN=*** DASD MANAGER PLUS load library
//******************************************************************
//*           DASD MANAGER VERSION vv.rr LOAD LIBRARY                *
//*                                                                *
//*   UTILJOB1 DD IS INPUT DATA SET FOR BMCTRIG GENERATED JOB      *
//*                                                                *
//******************************************************************
//UTILJOB1 DD    DISP=SHR,DSN=input.JCL.DataSet
//******************************************************************
//*                                                                *
//* UTILJOB2 DD IS OUTPUT DATA SET FOR RESTART OF BMCTRIG GENERATED*
//* JOB                                                            *
//******************************************************************
//UTILJOB2 DD    DISP=SHR,DSN=output.JCL.DataSet
//SYSPRINT DD    SYSOUT=*
//SYSTERM  DD    SYSOUT=*

Parameter list

The parameter list for batch processing of the Restart program differs, depending on whether you need restart or startover processing. Separate each parameter in the list by a space character.

For restart processing, the first parameter is the installation options module name, followed by the six-digit Restart Sequence Number and the Restart parameter required to restart the specific utility. If you do not supply the Restart parameter, the product supplies a default value of RESTART.

For startover processing, the first parameter is the name of the installation options module, followed by the letter S or the word Startover.

Warning

Important

Consult the appropriate utility reference manual for Restart parameter information before modifying the sample JCL.

Required DD statements

The input data set has the ddname UTILJOB1, and the output data set has the name ddname UTILJOB2.

Both of these DD statements can reference z/OS partitioned or sequential data set names. The record format for both data sets is Fixed or Fixed Block with a record length of 80 characters. We recommend that you do not use the same data set for input and output, because overwriting the input file removes your ability to restart at a previous restart point.

If the product detects a problem, it uses DD statements for SYSPRINT and SYSTERM for error messages.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

DASD MANAGER PLUS for DB2 13.1