Command reference / job

ENDGRPJOB

End Group Job

The End Group Job (ENDGRPJOB) command ends a single job within a group and resumes another job within the group. You can specify the following: Which job in the group is ended Which job in the group gains control (this is valid only when a job is ending itself) Whether a job log is created for the job being ended

Allowed environments: *INTERACT, *IPGM, *IREXX, *EXEC. Positional parameters: 1.

Parameters

GRPJOB Group job

Specifies the group job name of the job being ended.

Type
*NAME
Required
No
Default
*
Length
10
Case
Uppercase

Suggested / special values: *

*
The group job that issued this command is ended.
name
Specify the group job name of the job being ended.

RSMGRPJOB Group job to be resumed

Specifies the group job name of the job that is resumed after the active job in the group has ended. This parameter is valid only when the job that issues this command is ending itself.

Type
*NAME
Required
No
Default
*PRV
Length
10
Case
Uppercase

Suggested / special values: *PRV

*PRV
The most recently active group job is resumed.
name
Specify the group job name of the job that is resumed after the active job in the group ends.

LOG Job log

Specifies whether to produce the job log for the ending group job.

Type
*CHAR
Required
No
Default
*NOLIST
Length
7
Case
Uppercase

Allowed values: *NOLIST, *LIST

*NOLIST
The information in the job log is not spooled to an output queue.
*LIST
The information in the job log is spooled to an output queue.

Examples

ENDGRPJOB GRPJOB(*) LOG(*LIST) RSMGRPJOB(GROUPJOB1)

Ending Group Job that Issued Command. This command ends the job that is currently running. Its job log is spooled to an output file for printing. When the job completes running, group job GROUPJOB1 becomes the active job in the group.

ENDGRPJOB GRPJOB(GROUPJOB2) LOG(*LIST)

Printing Output of Ended Job. Assume that the job issuing the ENDGRPJOB command is group job GROUPJOB1, which wants to end GROUPJOB2. Group job GROUPJOB2 ends. Its job log is spooled to an output file for printing.

ENDGRPJOB GRPJOB(*) LOG(*NOLIST)

Ending a Job That's Part of a Secondary Job Pair. Assume that the job issuing the ENDGRPJOB command is the only job in the group and is part of a secondary job pair. The job issuing the command ends. The job's job log is not spooled to an output file. When the job ends, the other job in the secondary job pair is resumed.

IBM command documentation

Generated from os/cl/catalog/ENDGRPJOB.json and os/cl/help/ENDGRPJOB.json.