Change PDM Defaults (CHGPDMDFT)

The Change PDM Defaults (CHGPDMDFT) command enables you to assign Programming Development Manager (PDM) defaults for a specific user. The function is similar to the Change Defaults panel shown when F18 is pressed when using PDM, except that this command can be used to change the PDM defaults for another user and can be run in batch.

Restrictions:

Parameters

Keyword Description Choices Notes
USER User Simple name Required, Positional 1
OBJLIB Object library Name, *SAME, *SRCLIB, *CURLIB Optional
RPLOBJ Replace object *SAME, *NO, *YES Optional
CRTBCH Create/compile in batch *SAME, *YES, *NO Optional
RUNBCH Run in batch *SAME, *NO, *YES Optional
SAVRSTOPT Save/restore option *SAME, *SINGLE, *ALL Optional
JOBD Job description Single values: *SAME, *USRPRF
Other values: Qualified object name
Optional
Qualifier 1: Job description Name
Qualifier 2: Library Name, *LIBL, *CURLIB
CHGTYPTXT Change type and text *SAME, *YES, *NO Optional
FILE Option file Single values: *SAME
Other values: Qualified object name
Optional
Qualifier 1: Option file Name
Qualifier 2: Library Name, *LIBL, *CURLIB
MBR Option file member Name, *SAME Optional
FULLSCN Full screen mode *SAME, *NO, *YES Optional
LOGCOM Log option commands *SAME, *NO, *YES Optional
EXITENT Exit lists on ENTER *SAME, *NO, *YES Optional

User (USER)

Specifies the user whose PDM defaults are to be changed.

This is a required parameter.

simple-name
Specify the name of the user whose default values are to be changed. A user profile with the specified name must exist on the system.

Object library (OBJLIB)

Specifies the library where objects created by compiling source file members (from the Work with Members Using PDM display) are to be stored.

*SAME
If this parameter was previously set, the value does not change; otherwise *SRCLIB is used.
*SRCLIB
Use the library in which the source member exists as the object library.
*CURLIB
Use the current library as the object library. If no current library is defined, QGPL is used.
name
Specify the name of the library where objects resulting from compilation of source file members are to be stored.

Replace object (RPLOBJ)

Specifies if the existing object is deleted and replaced with the new object created when compiling a member or creating a module.

*SAME
If this parameter was previously set, the value does not change; otherwise *NO is used.
*NO
The existing object is not deleted before starting to compile a member or create a module. If the object exists, the Confirm Member Compile display appears.
*YES
The existing object is deleted before starting to compile a member or create a module. If the compilation fails, the object is not restored.

Create/compile in batch (CRTBCH)

Specifies whether to submit a job to batch when compiling members or creating modules.

*SAME
If this parameter was previously set, the value does not change; otherwise *YES is used.
*YES
Compile members or create modules in batch.
*NO
Compile members or create modules interactively.

Run in batch (RUNBCH)

Specifies whether to submit a job to batch when running objects.

*SAME
If this parameter was previously set, the value does not change; otherwise *NO is used.
*NO
Objects do not run in batch.
*YES
Objects run in batch.

Save/restore option (SAVRSTOPT)

Specifies whether to save or restore objects and members individually or with one command.

*SAME
If this parameter was previously set, the value does not change; otherwise *SINGLE is used.
*SINGLE
Save or restore the selected objects or members individually, each with its own separate command.
*ALL
Save or restore the selected objects or members all at the same time with one command.

Job description (JOBD)

Specifies the name of the job description for submitting a job in batch mode.

Single values

*SAME
If this parameter was previously set, the value does not change; otherwise *LIBL/QBATCH is used.
*USRPRF
The job description defined in the user profile of the user specified for the User (USER) parameter is used.

Qualifier 1: Job description

name
Specify the name of the job description to be used.

Qualifier 2: Library

*LIBL
All libraries in the job library list will be searched for the specified job description.
*CURLIB
The current library for the job will be searched for the specified job description. If no current library is defined, QGPL is used as the current library.
name
Specify the name of the library to be searched for the specified job description.

Change type and text (CHGTYPTXT)

Specifies if the Type and Text prompts can be changed by typing over them on the Work with Members Using PDM display.

*SAME
If this parameter was previously set, the value does not change; otherwise *YES is used.
*YES
The Type and Text prompts can be changed by typing over them on the Work with Members Using PDM display.
*NO
The Type and Text prompts cannot be changed by typing over them on the Work with Members Using PDM display.

Option file (FILE)

Specifies the file that contains the member with the user-defined options. The user-defined options in this file are the active user-defined options. The user-defined option file has a particular format. For more information on this format and how to copy a user-defined options file, refer to the Programming Development Manager User's Guide and Reference.

Single values

*SAME
If this parameter was previously set, the value does not change; otherwise FILE(*LIBL/QAUOOPT) is used.

Qualifier 1: Option file

name
Specify the name of active user-defined options file.

Qualifier 2: Library

*LIBL
All libraries in the job library list will be searched for the active user-defined options file.
*CURLIB
The current library for the job will be searched for the active user-defined options file. If no current library is defined, QGPL is used as the current library.
name
Specify the name of the library to be searched for the active user-defined options file.

Option file member (MBR)

Specifies the member that contains the user-defined options. The user-defined options in this member are the active user-defined options.

*SAME
If this parameter was previously set, the value does not change; otherwise QAUOOPT is used.
name
Specify the name of the member that contains the user-defined options.

Full screen mode (FULLSCN)

Specifies whether the options and function keys are shown on the Work With displays. This option does not apply to the Work with User-Defined Options display.

*SAME
If this parameter was previously set, the value does not change; otherwise *NO is used.
*NO
Options and function keys are shown on the Work With displays.
*YES
Options and function keys are not shown on the Work With displays.

Log option commands (LOGCOM)

Specifies whether commands resulting from PDM options or user-defined options are logged to the job log.

*SAME
If this parameter was previously set, the value does not change; otherwise *NO is used.
*NO
Do not log commands resulting from PDM options or user-defined options.
*YES
Log commands resulting from PDM options or user-defined options.

Exit lists on ENTER (EXITENT)

Specifies whether the user can exit list panels with the ENTER key. List panels include Library, Object, Member, User-Defined Options.

*SAME
If this parameter was previously set, the value does not change; otherwise *NO is used.
*NO
The user cannot exit list panels with the ENTER key.
*YES
The user can exit list panels with the ENTER key.

Examples

Example 1: Set Defaults for New PDM User

CHGPDMDFT   USER(USER2)

This command sets the PDM defaults if USER2 is a new PDM user. If the defaults were already set, they are not changed.

Example 2: Change Defaults for Existing PDM User

CHGPDMDFT   USER(USER2)  CRTBCH(*NO)
            RUNBCH(*YES)

This command changes the PDM default for the existing PDM user USER2, so that program compiles and modules creation are done interactively, and objects run are done in batch.

Error messages

*ESCAPE Messages

PDM0004
Library &1 was not found.
PDM0010
Library name &1 is invalid.
CPF0001
Error found on &1 command.
CPF2204
User profile &1 not found.
CPF2209
Library &1 not found.
CPF2228
Not authorized to change user profile.