CL Command Reference - CHGSRCPF

CL Command List > CHGSRCPF Reference

Description:

The Change Source Physical File (CHGSRCPF) command changes the attributes of a source physical file and all its members. The changed attributes are used for all members subsequently added to the file unless other values are specified or default for the add operation.

Restrictions:

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

. To change the file, an exclusive lock is necessary; no one may be using the file for any purpose.


Examples:

Example 1: Changing the Expiration Date

CHGSRCPF FILE(QGPL/INV) EXPDATE(¡¯10/31/88¡¯)

This command changes the expiration date of all members in file INV to October 31, 1988.



Example 2: Changing Text

CHGSRCF FILE(QGPL/DDMF) TEXT(¡¯Inventory File¡¯)
SYSTEM(*RMT)

This command changes the text of file INV located in the QGPL library on the remote system. Prior to specifying the above command, this user had created a DDM file by specifying the command, CRTDDMF FILE(QGPL/DDMF) RMTFILE(QGPL/INV) RMTLOCNAME(AS400).