Description

Syntax

Name field

Each job name that is specified on an SJOB must be unique within the job group. This uniqueness spans other GJOBs, job sets, and SJOBs.

Code a sjobname on every SJOB statement, as follows:
  • Each sjobname must be unique.
  • The sjobname must begin in column 3.
  • The sjobname is 1 through 8 alphanumeric or national ($, #, @) characters.
  • The first character must be alphabetic or national ($, #, @).
  • The sjobname must be followed by at least one blank.

The sjobname identifies the name of a job that is included in the job set. This name must match the name of a job that is submitted (that has a SCHEDULE statement identifying this job group) after the job group is defined.

Operation field

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

Parameter field

An SJOB statement has no parameters.

Comments field

The SJOB statement has no parameters. Comments can be coded anywhere after the operation field.

Location in the JCL

An SJOB statement is only valid within a job set context.

Error on SJOB JCL statement

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

Examples of SJOB statements

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