CL Command Reference - CHGPFM

CL Command List > CHGPFM Reference

Description:

The Change Physical File Member (CHGPFM) command changes the attributes of a physical file member.

Restrictions:

. To change a physical member, you must have object management (*OBJMGT) or object alter (*OBJALTER) authority for the physical file that contains the member, and execute (*EXECUTE) authority to the file library.

. No other user may be clearing or initializing the member, nor may any user be holding the file for exclusive use. Other users may have the member open, but the changes made to the member are not reflected in any open members. For the changes in open members to be effective, first close the member (this must be a full close if the member is open SHARE(*YES)) and then open it again.


Examples:

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

This command changes the member named FEB in the physical file INV in the QGPL library so that the expiration date of the member is now October 31, 1990 (assuming the job date format is mm/dd/yy).