COPY primary command

The COPY command copies one or more lines of data from a data set or member of a partitioned data set (PDS) into the member or data set currently being edited or viewed. Use the A (after) or B (before) line commands or the AFTER or BEFORE keyword along with a label, to specify where the data is to be copied.

You can optionally specify the data set details from which the data is to be copied. If you do not specify these details, File Manager displays the Edit/View - Copy panel where you can enter the data set details from which the data is to be copied.

Syntax


1 COpy
1 datasetname?(memname)
1 rt:applid:rname
1 MQ:manager:queuename
1  BEFORE before_label
1  AFTER after_label
1?  start_line end_line
datasetname
Name of data set from which data is to be copied. The default High Level Qualifier (HLQ) is used. Typically, the default is the TSO PREFIX for your user ID.
memname
Name of member from which data is to be copied.
rt:applid:rname
You can specify a CICS® resource in place of a data set name, where:
rt
Resource type. Valid values are:
FI
For a CICS® file.
TD
For a Transient Data Queue.
TS
For a Temporary Storage Queue.
applid
The VTAM® applid of the CICS® system.
rname
The name of the resource.
MQ:manager:queuename
You can specify a MQ queue, where:
manager
The MQ manager to be used. If you specify a generic name, File Manager displays a list of matching managers to select from.
queuename
The queue to be used. If you specify a generic name, File Manager displays a list of matching queues to select from.
before_label
Label identifying the start of a range of records from which data is to be copied. The label must start with a period (.) followed by one to four alphabetic characters (no numeric or special characters). Labels starting with the letter “Z” indicate an editor-assigned label.
after_label
Label identifying the end of a range of records from which data is to be copied. The label must start with a period (.) followed by one to four alphabetic characters (no numeric or special characters). Labels starting with the letter “Z” indicate an editor-assigned label.
start_line
Number identifying the line number of the first line of data in the data set or member from which data is to be copied.
end_line
Number identifying the line number of the last line of data in the data set or member from which data is to be copied.

Availability

Related tasks and examples