CUT primary command

The CUT command copies one or more lines of data from the current edit or view session into a clipboard for later retrieval by the PASTE command.

Syntax

Read syntax diagramSkip visual syntax diagram
                            .-REPLACE-.           
>>-CUT--+----------------+--+---------+--+----+----------------->
        '-clipboard_name-'  '-APPEND--'  +-X--+   
                                         '-NX-'   

>--+----------------------+------------------------------------><
   '-from_label--to_label-'   

clipname
Name of a clipboard to 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.
APPEND
Copied data is added to the existing contents of the clipboard.
REPLACE
Copied data replaces the existing contents of the clipboard.
NX
Copy only not-excluded records.
X
Copy only excluded records.
from_label
Label identifying the start of a range of records from which data is to be copied to the clipboard. 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.
to_label
Label identifying the end of a range of records from which data is to be copied to the clipboard. 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.

Related tasks and examples