PASTE—Move or Copy Lines from Clipboard

The PASTE primary command moves or copies lines from a clipboard into an edit session.


Read syntax diagramSkip visual syntax diagramPASTEDEFAULTclipboard_nameAFTERBEFORElabelDELETEKEEPASIS
The name of the clipboard to use. If you omit this parameter, the ISPF default clipboard (named DEFAULT) is used. You can define up to ten additional clipboards. The size of the clipboards and number of clipboards might be limited by installation defaults.
AFTER label
The data is copied after the line with the specified label.
BEFORE label
The data is copied before the line with the specified label.
The copied lines are not removed from the clipboard.
The copied lines are removed from the clipboard.
The PASTE command determines the character set of the data in the clipboard. If this is different to the character set being used for the file being edited an automatic conversion occurs for the data being pasted into the file.

If ASIS is specified, then the automatic conversion does not take place.

  1. You should always specify KEEP or DELETE in an edit macro because the default behavior may have been changed by the user.
  2. You can specify the default behavior (KEEP or DELETE) using the EDITSET primary command.


PASTE copies or moves lines from a specified clipboard to the current edit session. If lines in the clipboard are longer than the lines in the edit session, they are truncated.

Only the data portion of the line is saved in the clipboard. Line numbers are not saved. If the data was CUT from a data set that had sequence numbers and is PASTEd into an edit session without sequence numbers, or if it was CUT from a data set without sequence numbers and PASTEd into a session with sequence numbers, some shifting of data is likely to occur.


To paste data from the default clipboard to the line after the last line in the edit session:
To paste data from the default clipboard to the line after the first line in the edit session, without clearing the contents of the clipboard: