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
- You need *OBJMGT or *OBJALTER authority for the physical file that contains the member, and *EXECUTE authority to the file library.
- No other user may be clearing or initializing the member, or holding the file for exclusive use. Other users may have the member open, but changes do not show in open members until they are closed (fully, if open with SHARE(*YES)) and reopened.
Parameters
FILE
Physical file
Specifies the physical file that contains the member to be changed. This is a required parameter.
*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
Library
Library
Suggested / special values:
*LIBL, *CURLIB
MBR
Member
Specifies the member to be changed. This is a required parameter.
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.
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.
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.
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.
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.
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.
Generated from os/cl/catalog/CHGPFM.json and os/cl/help/CHGPFM.json.