Command reference / job

CHGGRPA

Change Group Attributes

Updates the group attributes of an interactive job. Use this command to make an interactive job a group job before transferring with TFRGRPJOB.

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

Parameters

GRPJOB Group job

Sets the group job name assigned to the job.

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

Suggested / special values: *SAME, *NONE

*SAME
Keep the current group job name.
*NONE
Keep the current only active job in a group is made a non-group interactive job, the group data area (*GDA) is deleted, and the group message queue (if there is one) is disassociated from the group; the mode of the group message queue, however,.
name
Enter the group job name that is assigned to the interactive job issuing this command. This causes the job to become a group job and also causes the group data area (*GDA) to be created.

MSGQ Message queue

Enter the name of a message queue that is associated with a group. This message queue must exist, but it does not necessarily need to be allocated to the job at the time this command is issued.

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *NONE

*SAME
Keep the current message queue associated with the group.
*NONE
No message queue is associated with the group. If a message queue is associated with the group, it is disassociated from the group (but the mode does not change).
name (message queue)
Enter the name of the message queue that is associated with the group.
*LIBL
Look in the thread's library list.
*CURLIB
Look in the current library, falling back to QGPL.
name (library)
Enter the library where the message queue is located.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Message queue Message queue

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

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

Suggested / special values: *LIBL, *CURLIB

TEXT Text 'description'

Select up to 50 characters of text that describe the group job. This text appears on the Group Job Selection Display for the Transfer to Group Job (TFRGRPJOB) Command.

Type
*CHAR
Required
No
Default
*SAME
Length
50
Case
Uppercase

Suggested / special values: *SAME, *BLANK

*SAME
Keep the current text.
*BLANK
Leave the description blank.
character-value
Enter no more than 50 characters of text, enclosed in apostrophes.

Examples

CHGGRPA GRPJOB(GROUPJ1) MSGQ(QGPL/GRPMSGQ)

An interactive job is first changed to a group job before it is allowed to create other group jobs at the work station.

CHGGRPA GRPJOB(*NONE)

Assume that the job in the previous example issues this command. Assume also that the job is the only active job in the group. Group job GROUPJ1 is changed into a nongroup, interactive job.

IBM command documentation

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