Go to LeighWeb Home Page            

Back To LeighWeb Mainframe Utilities Page

View the module associated with this documentation

 The CUT and PASTE edit macros provide a handy method to move data from one edit
 session to another.  The CUT macro saves lines from an edit session.  The PASTE
 macro places these lines into another edit session (or the same session).  The
 CUT macro can combine lines with previously saved lines.  The PASTE macro
 places these lines into one or more edit session.  The edit sessions can be on
 different screens and/or edit sessions started at a later time provided the
 user does not exit ISPF.

 The CUT and PASTE macros have several optional operands.  The operands P (or
 PROMPT) and D (or DEFAULTS) provide menu panels for entering the optional
 operands as shown in the screen layouts below.  The operand H (or HELP) can be
 used to provide tutorial panels.  The lines from the CUT macro are saved in an
 ISPF table.  A two-character operand is used to name the table for saved lines.
 A numeric operand sets the limit for the size of the table.  A two-character
 operand on the PASTE macro names the table to obtain the lines.  A numeric
 operand is not used with PASTE.  The table name will default if not given.
 This default can be changed.

 OPERAND      FUNCTION

 action       This is the action to be performed by this CUT operation.  Valid
              choices are ADD to lines already cut or REPLACE the lines already
              cut with the new lines.  HELP is used to enter the tutorial for
              CUT and PASTE.  DEF is used to display the defaults panel for CUT.
              If no operands are entered on the command, the defaults are used.

 table        This specifies a two-character suffix for the ISPF table
              generated.  The table name prefix is CUTPST.  This operand can be
              used to create several different groups of lines for later use by
              PASTE.

 limit        The maximum number of lines to be cut by this operation.  This
              number can be from 100 to 99999.

 Identify the lines to be cut by using the C, CC, M, or MM line commands in the
 edit session.

 OPERAND      FUNCTION

 action       This is the action to be performed by this PASTE operation.  Valid
              choices are KEEP the lines cut in the ISPF table or ZERO the lines
              cut so future CUT actions will start with an empty table.  HELP is
              used to enter the tutorial for CUT and PASTE.  DEF is used to
              display the defaults panel for PASTE.  If no operands are entered
              on the command, the defaults are used.

 table        This operand specifies the suffix of the ISPF table that has the
              lines to be pasted.  This name, if different from the default
              name, must have been created by a prior CUT command.

 Identify where the lines are to be placed using the A or B edit line commands.

 Notes:

 1.  All operands on both commands are optional.  The defaults values are used
     for any item not entered.

 2.  The data lines cut are kept in an ISPF table.  ISPF tables are associated
     with a logical screen.  If the screen where the lines were CUT is ended,
     the table is deleted and the lines are not available for use by PASTE.  A
     logical screen is created by the SPLIT or HOLD commands.  The lines are
     also deleted when the ISPF session is terminated.  They are not saved
     across ISPF sessions.

 ------------------------- CUT prompt and set defaults ------------------------
 COMMAND ===>

 Action       ====>           ADD, REPLACE, or blank for default
     Enter  END key for no action
 CUT table name===>           any two character name for this one time
                              blank for default
 CUT size limit===> 5000      any number 100 to 99999 for this one time

 Set default actions for CUT and PASTE

 CUT default   ===> ADD       ADD or REPLACE
 PASTE default ===> KEEP      KEEP or ZERO
 CUT table name===> DF        any two character name for default
 CUT size limit===> 5000      any number 100 to 99999 for default

   ADD adds CUT lines to the end of previously CUT lines, if any
   REPLACE clears any previously CUT lines and replaces them with newly CUT
           lines
   ZERO deletes previously CUT lines after the PASTE operation
   KEEP keeps previously CUT lines after the PASTE operation to be used by a
        later PASTE or added to by later CUT operations

 ------------------------ PASTE prompt and set defaults -----------------------
 COMMAND ===>

 Action       ====>           ZERO, KEEP, or blank for default
     Enter  END key for no action
 CUT table name===>           any two character name for this one time
                              blank for default

 Set default actions for CUT and PASTE

 CUT default   ===> ADD       ADD or REPLACE
 PASTE default ===> KEEP      KEEP or ZERO
 CUT table name===> DF        any two character name for default
 CUT size limit===> 5000      any number 100 to 99999 for default

   ADD adds CUT lines to the end of previously CUT lines, if any
   REPLACE clears any previously CUT lines and replaces them with newly CUT
           lines
   ZERO deletes previously CUT lines after the PASTE operation
   KEEP keeps previously CUT lines after the PASTE operation to be used by a
        later PASTE or added to by later CUT operations