Specifying the CHKPT control statement


The CHKPT control statement is optional.

You can use it to specify options for the Automatic Restart feature. For more information, see Using-the-Automatic-Restart-feature.

The following keywords allow you to set restart parameters and specify the restart data set to use:

  • RESTART
  • CHKPTRPT
  • DDN

Procedures

Perform the following steps to specify the CHKPT control statement:

  1. Use the RESTART keyword to specify the restart mode.
  2. Use the CHKPTRPT keyword to control the production of a report showing the status of entries in the checkpoint data set.
  3. Use the DDN keyword to specify the ddname of the checkpoint data set or the name of the dynamic allocation model to use for allocating the checkpoint data set.

Examples

In the following example, the checkpoint data set is dynamically allocated from the model named CHKPTDS1. The RESTART keyword specifies the default restart mode (automatic) and therefore can be omitted. The CHKPTRPT keyword requests the production of a report that shows the status of entries in the checkpoint data set.

//ICPSYSIN DD *
  GLBL . . .   
  MODEL NAME(CHKPTDS1) DSN(&JOB.&STEP.CHKPT) UNIT(SYSDA)
  CHKPT DDN((*,CHKPTDS1)) RESTART(AUTO) CHKPTRPT(Y)
  IC   DBD(PAYROLL) . . .

In the following example, the checkpoint data set is specifically allocated with the default ddname ICPCHKPT. The default values are used for the Automatic Restart feature options. Therefore, the CHKPT control statement is omitted.

//ICPCHKPT DD DSN=PAYROLL.STEP1.ICPCHKPT,DISP=OLD
//ICPSYSIN DD *
  GLBL . . .
  IC   DBD(PAYROLL) . . .

Selecting control statement keywords

The control statement keywords enable and disable utility features, set values for specific tasks, and identify data sets.

The keywords are never positional; you can place them in any order on a control statement. If you do not specify a keyword, the default value that is assigned for the keyword is used (if a default value is assigned). The following table contains all keywords, a brief explanation of their purposes, and their internal default values.

For a comprehensive discussion of each keyword, see ICPSYSIN-keywords.


 

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