CREATE (CRE)


The CREATE command creates a new member of a PDS using source records specified in the edit data set.

The command is available in the Edit function in Character and Vertical Formatted modes.

image2021-6-3_10-44-22.png

data set(member)

To create a new member in a different PDS, specify the data set name followed by the member name enclosed in parentheses. Incorrectly specifying the member name produces the message: CANNOT CREATE.

(member)

Specifies the name of a new member to be created in the same PDS as the member currently being edited. Incorrectly specifying the member name produces the message: CANNOT CREATE.

Guidelines

Lines to be written to a newly created member must be specified with one of the following line commands:

  • C (copy)
  • M (move).

Using the M line command instead of C produces the message: MOVE CHANGED TO COPY. The new member is created as if the C line command was used and the specified line range is not deleted from the edit data set.

Using the CREATE primary command without specifying a source range of lines produces the message: CREATE/REPLACE PENDING. Specify the lines to be copied or moved with the appropriate line command.

Attempting to create a member to a non-partitioned data set produces the message: MEMBER NAME NOT ALLOWED. Using the CREATE command without a parameter produces the message: ENTER DSNAME.

Successful creation of a new member produces the message: MEMBER (name) CREATED.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*