Description

Syntax

Name field

Code a job set name on every ENDSET statement, as follows:
  • Each setname must be unique.
  • The setname that is specified on the ENDSET statement must match the setname that is specified on the matching JOBSET statement.

Operation field

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

Parameter field

An ENDSET statement has no parameters.

Location in the JCL

An ENDSET statement marks the end of a job set and must be paired with a JOBSET statement.

Error on ENDSET statement

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

Example of ENDSET statement

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