Command reference / file
ADDPFM
Add Physical File Member
Adds a named member to an existing physical file. The file's member limit is set by MAXMBRS on CRTPF or CHGPF. Each new member has the file's attributes, its own data records, and its own access path as defined in DDS.
Allowed environments: *ALL.
Positional parameters: 2.
Restrictions
- Conditionally threadsafe. In multithreaded jobs it is not threadsafe for distributed files that use *SNA relational databases, and it fails for DDM files of type *SNA when SYSTEM(*RMT) or SYSTEM(*FILETYPE) is specified.
Parameters
FILE
Physical file
Names the physical file that receives the new member. Required. Qualified by library.
*LIBL- Search all libraries in the thread's library list for the first match.
*CURLIB- Use the job's current library, or QGPL if none is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Physical file
Physical file
Library
Library
Suggested / special values:
*LIBL, *CURLIB
MBR
Member
Names the file member to add. It must be unique within the file. Required. For a DDM file, it must match the member name in the remote file name.
EXPDATE
Expiration date for member
Sets the date after which the member cannot be used.
Suggested / special values:
*NONE
*NONE- No expiration date is specified.
SHARE
Share open data path
Controls whether the open data path is shared with other programs in the same routing step.
Allowed values:
*NO, *YES
*NO- The open data path is not shared; a new one is created each time a program opens the file.
*YES- The same open data path is shared with each program in the job that also specifies *YES when opening the file.
TEXT
Text 'description'
Briefly describes the member, up to 50 characters enclosed in apostrophes.
Suggested / special values:
*BLANK
*BLANK- No text is specified.
SRCTYPE
Source type
Sets the source type for the new member. Only valid if the file was created as a source physical file.
Suggested / special values:
*NONE
*NONE- No source type is specified.
Examples
ADDPFM FILE(INVENTX) MBR(MONDAYTX) TEXT('Monday''s Inventory Transactions')
Adds member MONDAYTX to file INVENTX, found through the library list, with the given text. Member size and storage come from the CRTPF command that created the file.
Generated from os/cl/catalog/ADDPFM.json and os/cl/help/ADDPFM.json.