Use the CREATE command to add a new member to a partitioned data
set, create a new sequential data set, or create a new z/OS® UNIX file.
Use the REPLACE command to rewrite a member, sequential data set,
or z/OS UNIX file. The process of creating and replacing
data is very similar. However, remember that when you replace data,
the original data is deleted and replaced with the new data.
There are two ways you can use CREATE or REPLACE:
- You can type either CREATE or REPLACE on
the command line, followed by the name of a member, the name of a
data set and member, the name of a sequential data set, or the name
of a z/OS UNIX file to be created or replaced. You can
add line labels that show the lines to be copied. If you omit the
labels, you can use the C (copy) or M (move) line commands to specify
which lines are to be copied or moved. Then press Enter. See CREATE—Create Data and REPLACE—Replace Data for
the complete syntax of the commands.
- If you omit the member name, data set name and member, sequential
data set name, or z/OS UNIX file name, and just type CREATE or REPLACE and
specify the lines to be used to create or replace the member, the
editor displays a panel requesting the name of the member or data
set you want created or replaced.
If you try to create or replace data that has inconsistent attributes
(for example, replacing a sequential data set with a member of a partitioned
data set), the editor displays a warning and gives you an opportunity
to cancel the command:
EDIT - Confirm Replace
Data set attributes are inconsistent. Truncation may result in
the right-most portions of some records if replace is performed.
"Target" data set attributes:
Data set name. : USERID.PRIVATE.STUFF
Record format. : VARIABLE
Record length. : 133
"Current" data set attributes:
Data set name. : USERID.PRIVATE.EXEC(PGM1)
Record format. : VARIABLE
Record length. : 251
Press ENTER key to allow replace with truncation.
Enter END command to cancel replace.