Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
CUT—Cut and Save Lines z/OS ISPF Edit and Edit Macros SC19-3621-00 |
|
The CUT primary command saves lines to one of 11 named clipboards for later retrieval by the PASTE command. The lines can be appended to lines already saved by a previous CUT command or can replace existing lines in a clipboard. Syntax>>-CUT--+-| cut_options |-+------------------------------------>< '-DISPLAY---------' cut_options .-.ZFIRST--.ZLAST----. .-DEFAULT--------. |--+--------------------+--+----------------+--+----+-----------> | (1) | '-clipboard_name-' +-X--+ +-labela--labelb-----+ '-NX-' '-linenum1--linenum2-' >--+---------+--+--------+--------------------------------------| +-APPEND--+ +-ASCII--+ '-REPLACE-' +-EBCDIC-+ '-UTF8---' Notes:
DescriptionCUT saves copies of lines from an edit session to a clipboard for later retrieval by the PASTE command. The lines are moved or copied from the session to the named clipboard. Lines are specified by either the C (Copy) or M (Move) line commands, CC or MM block line commands, or label names. If the C or CC line commands or labels are used to identify the lines, the lines are copied to the clipboard. If the M or MM line commands are used to identify the lines, the lines are copied to the clipboard and deleted from the edit session (in effect, moving them). All lines in the edit session are copied to the clipboard if you do not specify the lines using a label range on the CUT command, or through the C or M commands. If you specify a clipboard name, lines are copied to that clipboard. If the specified clipboard does not yet exist, it is created. ISPF provides a default clipboard named DEFAULT. You can use up to 10 other clipboards that you define. The defined clipboards exist as long as you are logged on to TSO and are deleted when you log off. To browse, edit, clear, or rename any of the clipboards,
use the DISPLAY keyword of the CUT command:
ExamplesThis command saves to the default
clipboard all the lines in the current file from the current cursor
position to the last line. These lines are appended to any lines that
are already in the clipboard:
To
save all the lines in the current file to a clipboard named USERC1,
replacing any lines already in the clipboard:
This example assumes that you have APPEND set as the default behavior in the EDITSET command panel. Because all lines are copied by default, in this case you could omit the labels .ZFIRST and .ZLAST. |
Copyright IBM Corporation 1990, 2014
|