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.

image2021-6-3_10-40-51.png

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.

Important

When creating a new member of a File-AID Selection Criteria or XREF data set, do not use the COPY command to copy a similar member. Use the Selection Criteria (6) or XREF (7) function. File-AID Edit creates standard ISPF stats for new PDS members, while Selection Criteria and XREF members have special directory requirements. A member created with File-AID Edit is not valid. Although you may use File-AID Edit to edit existing selection criteria or XREF members, we recommend that you use the Selection Criteria (6) or XREF (7) functions.

Edit COPY Screen

File-AID -----------------------  Edit COPY -----------------------------------
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.

 

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