Change PDG Profile (CHGPDGPRF)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Change Print Descriptor Group Profile (CHGPDGPRF) command changes the Print Descriptor Group (PDG) profile information for a particular user.

Top

Parameters

Keyword Description Choices Notes
USER User Name, *CURRENT Required, Key, Positional 1
PDG Print descriptor group Single values: *SAME
Other values: Qualified object name
Required, Positional 2
Qualifier 1: Print descriptor group Name
Qualifier 2: Library Name, *LIBL, *CURLIB
PRTD Print descriptor Character value, *SAME Required, Positional 3
Top

User (USER)

Specifies the name of the user whose PDG profile is being changed.

The possible values are:

*CURRENT
The PDG profile of the current user is changed.
user-name
Specify the name of the user whose PDG profile is being changed.
Top

Print descriptor group (PDG)

Specifies the name and library of the print descriptor group (PDG) to associate with this user.

The possible PDG values are:

print-descriptor-group-name
Specify the name of the PDG to change.

The possible library values are:

*LIBL
All libraries in the library list for the current thread are searched until the first match is found.
*CURLIB
The current library for the job is used to locate the PDG. If no library is specified as the current library for the job, QGPL is used.
library-name
Specify the name of the library where the PDG being changed is located.

This is a required parameter.

Top

Print descriptor (PRTD)

Specifies the print descriptor name within the Print Descriptor Group (PDG).

The possible values are:

*SAME
The print descriptor name does not change.
print-descriptor-name
Specify the print descriptor name.

This is a required parameter.

Top

Examples

CHGPDGPRF   USER(JPSMITH)  PDG(*LIBL/LETTERS)  PRTD(DRAFT_QUALITY)

This command changes the print descriptor for user profile JPSMITH. The print descriptor is changed to DRAFT_QUALITY in print descriptor group LETTERS.

Top

Error messages

*ESCAPE Messages

CPF2204
User profile &1 not found.
CPF2217
Not authorized to user profile &1.
CPF2247
Internal security object not available. Reason code &1.
CPF6D82
PDG profile not changed for user &1.
Top