Where allowed to run: All environments (*ALL) Threadsafe: Conditional |
Parameters Examples Error messages |
The Add Physical File Member (ADDPFM) command adds a named member to a physical file, which must already exist on the system. The maximum number of members that can be added to the file is specified for the Maximum members (MAXMBRS) parameter on the Create Physical File (CRTPF) command or the Change Physical File (CHGPF) command. To add other members to the file, use the ADDPFM command to specify each one.
The number of members that can be added to the physical file is limited to the number specified for the MAXMBRS parameter of the associated CRTPF command. Each member added has the same attributes as those defined in the physical file, its own set of data records, and its own access path, as specified in the data description specifications (DDS). The access path determines the order in which the records in that member are processed.
Restrictions:
Note: An *EXCLRD lock is required on the file to add a member. Because this command adds a member to a file in a library, the library must not be locked (*SHRNUP or *EXCLRD in the Allocate Object command) by another job.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FILE | Physical file | Qualified object name | Required, Positional 1 |
Qualifier 1: Physical file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
MBR | Member | Name | Required, Positional 2 |
TEXT | Text 'description' | Character value, *BLANK | Optional |
EXPDATE | Expiration date for member | Date, *NONE | Optional |
SHARE | Share open data path | *NO, *YES | Optional |
SRCTYPE | Source type | Simple name, *NONE | Optional |
Top |
Specifies the physical file to which the member is to be added.
This is a required parameter.
Qualifier 1: Physical file
Qualifier 2: Library
Top |
Specifies the file member to be added to the physical file. The file member name must be unique in the file.
If a DDM file is specified for the FILE parameter, and a member name is specified as part of the remote file name of the DDM file, the MBR name specified must match the member name in the remote file name in the DDM file.
This is a required parameter.
Top |
Specifies the text that briefly describes the object.
Top |
Specifies the expiration date of the physical file member.
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 source type attribute to be assigned to the new member. A source type can only be specified if the physical file was created using the Create Source Physical File (CRTSRCPF) command, or using the Create Physical File (CRTPF) command with *SRC specified for the File type (FILETYPE) parameter.
Top |
ADDPFM FILE(INVENTX) MBR(MONDAYTX) TEXT('Monday''s Inventory Transactions')
This command adds a member named MONDAYTX to the physical file named INVENTX. The library list (*LIBL) is used to find the file because the FILE value is not qualified by a library name. The size of the member and the storage allocation values assigned to this member were specified in the CRTPF command that created the physical file. The text, Monday's Inventory Transactions, describes this member of the INVENTX file.
Top |
*ESCAPE Messages
Top |