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

Parameters

FILE Physical file

Names the physical file that receives the new member. Required. Qualified by library.

Type
*QUAL
Required
Yes
Case
Uppercase
*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

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

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.

Type
*NAME
Required
Yes
Length
10
Case
Uppercase

EXPDATE Expiration date for member

Sets the date after which the member cannot be used.

Type
*DATE
Required
No
Default
*NONE
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*NO
Length
4
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*BLANK
Length
50
Case
Mixed case

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.

Type
*SNAME
Required
No
Default
*NONE
Length
10
Case
Uppercase

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.

IBM command documentation

Generated from os/cl/catalog/ADDPFM.json and os/cl/help/ADDPFM.json.