COPY
The COPY command inserts records from another file at a specified location in the data set (see also Combining data sets).
The command is available in the Edit function in Character and Vertical Formatted modes.
dataset, member
Specifies the entire data set or a member to be copied. If a data set/member name is specified as part of the command, and the destination is specified correctly, the entire data set/member is copied immediately. If specified, the member name must be in parentheses.
If you omit the data set parameter, the Edit COPY Screen is displayed. Complete this screen as described in Edit COPY Screen to specify the data set to copy. The MERGE primary command (MERGE) also accesses this Edit COPY Screen.
AFTER line-label, BEFORE line-label
Designates the destination. The line-label parameter must be specified as a sequence number (prefixed by a period), a system label (such as. ZFIRST, .ZLAST, or .ZCSR), or a user-defined label. Specifying a non-existent label produces the message: UNDEFINED LABEL. Illegal labels (for example, those not beginning with periods) produce the message: INVALID LABEL.
The A (after), B (before), H (here), or O (overlay) line commands can be used as an alternative to a label to specify the destination. You can specify multiple A (after), B (before), and H (here) line commands. If you do not specify a destination, File-AID displays the message: COPY IS PENDING. If there are no records in the edit data set, you do not need to specify a destination.
Edit COPY Screen
COMMAND ===>
Current dataset: USERID9.FASAMP.JCL
Enter "FROM" dataset:
Dataset name ===>
Member ===> (Blank/pattern for member list)
Volume serial ===> (If not cataloged)
Use ENTER to perform copy/merge
Use END to cancel
Field Descriptions
Current data set:
Specifies the currently active data set.
Specify "FROM" data set:
Data set name
Name of the data set from which data is to be copied or merged.
Member
Specifies the member name of the data set to be copied or merged.
Volume serial
Volume serial number if the data set is not cataloged.