Command reference / db

CHGPFM

Change Physical File Member

Changes the attributes of a physical file member: its source type, expiration date, shared open data path setting, text, and preferred storage unit.

Allowed environments: *ALL. Positional parameters: 2.

Restrictions

Parameters

FILE Physical file

Specifies the physical file that contains the member to be changed. This is a required parameter.

Type
*QUAL
Required
Yes
Case
Uppercase
*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 thread is used to locate the file. If none is set for the job, QGPL is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Physical file Physical file

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

MBR Member

Specifies the member to be changed. This is a required parameter.

Type
*NAME
Required
Yes
Length
10
Case
Uppercase

Suggested / special values: *FIRST

*FIRST
The first member of the specified file is used.

SRCTYPE Source type

Specifies the source type of a member if this is a source file. The user must ensure the validity of the value.

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

Suggested / special values: *SAME, *NONE

*SAME
The value does not change.
*NONE
No source type is specified.

EXPDATE Expiration date for member

Specifies the expiration date. The member cannot be overwritten until that date, and the date must be later than or equal to the current date.

Type
*DATE
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *NONE

*SAME
The expiration date of the member does not change.
*NONE
The member has no expiration date.

SHARE Share open data path

Specifies whether the open data path (ODP) is shared with other programs in the same routing step.

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

Allowed values: *SAME, *YES, *NO

*SAME
The ODP sharing value of the member does not change.
*NO
The ODP is not shared. A new ODP is created each time a program opens the file.
*YES
The same ODP is shared with each program in the job that also specifies *YES when it opens the file.

TEXT Text 'description'

Specifies the text that briefly describes the object.

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

Suggested / special values: *SAME, *BLANK

*SAME
The text that describes the member does not change.
*BLANK
No text is specified.

UNIT Preferred storage unit

Specifies the preferred storage media for the member.

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

Allowed values: *SAME, *ANY, *SSD

*ANY
No storage media is preferred. Storage is allocated from any available media.
*SSD
Solid state disk storage is preferred. It is used if available.

Examples

CHGPFM FILE(QGPL/INV) MBR(FEB) EXPDATE('10/31/90')

Changes member FEB in physical file INV in QGPL so its expiration date is October 31, 1990, assuming the job date format is mm/dd/yy.

IBM command documentation

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