Previous Topic

Next Topic

Book Contents

Book Index

General Information for STEP RANGE

Whenever a STEP RANGE statement is specified, it eliminates the need to define separate ON PGMST, ON PROCST, and ON CODES statements and accompanying DO actions for each step in the range. The defined STEP RANGE name can be used, without redefining the range, in subsequent ON PGMST, ON PROCST, and ON CODES statements, by specifying the step range name, preceded by an asterisk, in the ON PGMST field. For more information on ON PGMST and ON PROCST, see see ON Statements: Post–Processing Parameter. For more information on ON CODES, see CODES Values.

Any number of step ranges can be specified. After entering a STEP RANGE parameter, another STEP RANGE parameter line is automatically displayed.

If the EXCLUDED STEP RANGE facility is activated (that is, EXSTPRNG=Y in the CTMPARM parameter) and the name of the step range starts with a minus sign, then that step range defines an EXCLUDED STEP RANGE (all steps in the job, excluding the steps from one step to another).

For example:

STEP RANGE  -ERANG1  FR (PGM.PROC) STEP10 . TO STEP20

defines a step range called -ERANG1, which contains all the job steps except the steps from step STEP10 to step STEP20.

Examples for STEP RANGE

Triggers a SHOUT if any step, except step STEP3 through step STEP6, finishes with code 16.

STEP RANGE -ERANG1 FR (PGM.PROC) STEP3 .  TO STEP6

ON PGMST *-ERANG1 PROCST          CODES C0016

  DO SHOUT ....

Triggers a SHOUT if every job step, except those from step STEP6 to step STEP9, finishes with a code greater than 8.                                                                                                                                           

STEP RANGE -ERANG2 FR (PGM.PROC) STEP6 . TO STEP9

ON PGMST *-ERANG2 PROCST +EVERY   CODES >C0008

  DO SHOUT ...

Triggers a SHOUT if every job step, except step STEPA, finish with a zero code.

STEP RANGE -ERANG3 FR (PGM.PROC) STEPA . TO STEPA

ON PGMST *-ERANG3 PROCST +EVERY   CODES C0000

  DO SHOUT ...

Parent Topic

STEP RANGE: Post–Processing Parameter