z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Working with an edit line command table

z/OS ISPF Edit and Edit Macros
SC19-3621-00

You can create an edit line command table to store your own line commands. Each line command is associated with a macro that you want to run when you enter the specified line command. The associated macro uses the PROCESS macro statement to determine the lines the command applies to and the destination to be used by the macro.

You can edit an existing line command table to add, delete, or modify your line commands.

When you invoke an Edit or View session, you can specify the name of the edit line command table to be used for that session.

For each line command you add to the table, you specify:
  • The name of the line command you want to add.
  • The name of the associated edit macro.
  • If it supports a multiple line format. That is, if a numeric suffix can be included on the command to indicate the number of lines that the command applies to.
  • If it is a block format. That is, if the command applies to a block of lines.
  • If it requires a destination line command as well.

If you have specified an edit line command table to be used in an Edit or View session, when you enter a line command that is in the edit line command table, ISPF invokes the associated macro.

To create a new edit line command table or to edit an existing edit line command table, in the table editor (3.16):

  1. Specify the name of the table in the Table Name field.
  2. Select the Table is an EDIT line command table option.
  3. Type "E" on the command line and press Enter.

    For a new table, ISPF displays the entry fields for the first line command.

    1. In the User Command field, type the name of the line command you want to create. This can be a 1 to 6 character value. The name must not conflict with any of the ISPF edit internal line commands.
    2. In the MACRO field, type the name of the edit macro that you want to run when the specified edit line command is entered.
    3. In the Program Macro field, type one of these values:
      Y
      The macro is a program.
      N
      The specified macro is CLIST or REXX.
    4. In the Block Format field, type one of these values:
      Y
      The macro permits a block format for the line command by you repeating the last character of the line command. This is not possible if the line character is 6 characters long.
      N
      The macro does not permit a block format.
    5. In the Multi line field, type one of these values:
      Y
      The macro allows a multiple line format where uou can indicate a range of lines by providing a numeric suffix on the line command.
      N
      The macro does not allow a multiple line format.
    6. In the Dest Used field, type one of these values:
      Y
      The line command requires a destination line command as well.
      N
      The line command does not use a destination line command.

    For an existing table, ISPF displays each line command and its associated fields on a separate line.

    1. You can modify the details for existing line commands in the table, or add or delete lines by entering any of these commands in the table row selection field:
      I
      Insert one or more rows after the row where the command was entered.
      B
      Insert one or more rows before the row where the command was entered.
      R
      Repeat a row by creating one or more copies of the row where the command was entered.
      D
      Delete one or more rows.
      Note: For the I, B, and D commands, you can include an optional number from 1 to 9 to the line command character to cause processing against multiple rows.
  4. Press PF3 to save the new or updated table.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014