Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Change Physical File Member (CHGPFM) command changes the attributes of a physical file member.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FILE | Physical file | Qualified object name | Required, Key, Positional 1 |
Qualifier 1: Physical file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
MBR | Member | Name, *FIRST | Required, Key, Positional 2 |
SRCTYPE | Source type | Simple name, *SAME, *NONE | Optional |
EXPDATE | Expiration date for member | Date, *SAME, *NONE | Optional |
SHARE | Share open data path | *SAME, *YES, *NO | Optional |
TEXT | Text 'description' | Character value, *SAME, *BLANK | Optional |
Top |
Specifies physical file that contains the member to be changed.
This is a required parameter.
Qualifier 1: Physical file
Qualifier 2: Library
Top |
Specifies the member to be changed.
This is a required parameter.
Top |
Specifies the source type of a member if this is a source file. The source type option is a character string of no more than 10 characters representing a name. The first character must be alphabetic (including the characters $, @, or #), and the remaining characters must be alphanumeric or an underline.
Note: The user of this command must assure the validity of the source type option.
The source type option can only be used with this command to change the source type attribute of a source file member.
Top |
Specifies the expiration date. The files cannot be overwritten until the expiration date. The expiration date must be later than or equal to the current date.
Top |
Specifies whether the open data path (ODP) is shared with other programs in the same routing step. When an ODP is shared, the programs accessing the file share facilities such as the file status and the buffer.
Top |
Specifies the text that briefly describes the object.
Top |
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).
Top |
Top |