Description

Syntax

Name field

Code a job set name on every JOBSET statement, as follows:
  • Each setname must be unique within the job group. This uniqueness spans other job sets, GJOBs, and SJOBs.
  • The setname must begin in column 3.
  • The setname is 1 through 8 alphanumeric or national ($, #, @) characters.
  • The first character must be alphabetic or national ($, #, @).
  • The setname must be followed by at least one blank.

This is the name associated with the job set. It can be specified on NAME= keyword of the AFTER and BEFORE statements.

Operation field

The operation field consists of the characters JOBSET and must be preceded and followed by at least one blank. It can begin in any column.

Parameter field

A JOBSET statement has one keyword parameter and no positional parameters.

Keyword Parameters: A JOBSET statement can contain the following keyword parameter.

FLUSHTYP=ALLFLUSH|ANYFLUSH
For each job in the set, the job is flushed if all parent jobs are flushed (ALLFLUSH) or if any parent jobs are flushed (ANYFLUSH).

Comments field

The comments field follows the parameter field after at least one intervening blank space. If you do not code any parameters on a JOBSET statement, do not code any comments.

Location in the JCL

A JOBSET statement is only valid within a job group context. A JOBSET statement must have a matching ENDSET statement. Job set definitions cannot be nested.

Error on JOBSET statement

If the system finds an error on the JOBSET statement, an HASP1117 message is issued which describes the error. See z/OS JES2 Messages. for more information about the message.

Examples of JOBSET statements

//SET1   JOBSET
//JOBA   SJOB
//JOBB   SJOB
//SET1   ENDSET