TSO-ISPF JCL COBOL VSAM DB2 CICS Tools Articles Job Portal Forum Quiz Interview Q&A

Exclude ISPF/PDF Edit Macro Command


Exclude command is used to exclude the selected lines from the display.

ISREDIT EXCLUDE str col1 col2 label1 label2
                {NEXT or ALL or FIRST or LAST or PREV }
                {CHARS or PREFIX or SUFFIX or WORD}

  • The EXCLUDE command may be used with the FIND or CHANGE commands to locate a string, change the string, and then exclude that line from the display.

  • 'str' is the string that will be searched for, to exclude lines.

  • 'col1' and 'col2' are the optional range of column numbers.

  • 'label1' and 'label2' are range of line numbers that will be searched by exclude command.

  • NEXT or ALL or FIRST or LAST or PREV denotes the search order.

  • 'PREFIX' parameter indicates string must be found as a prefix of a word.

  • 'SUFFIX' parameter indicates string must be found as a suffix of a word.

  • The default 'CHARS' parameter indicates the string may be found anywhere the characters match.

  • The parameter 'WORD' indicates the string will be found when it is surrounded by blanks, or other non-alphanumeric characters, on both sides.


Examples:

Example 1:

Exclude lines that contain the letters THEN:.

ISREDIT EXCLUDE THEN

Example 2:

Exclude last line between .A and .B with suffix of THEN:.

ISREDIT EXCLUDE THEN .A .B LAST SUFFIX

Example 3:

Exclude the first preceding line within labels .A and .C with a word equal to THEN in columns 1 through 5:.

ISREDIT EXCLUDE THEN .A .C PREV WORD 1 5

Possible return codes are:

  • 0: The command or statement ended successfully.

  • 4: The search string was not found.

  • 8: No lines were excluded.

  • 20: A critical error has occurred.


If you have any doubts or queries related to this chapter, get them clarified from our Mainframe experts on ibmmainframer Community!

Are you looking for Job Change? Job Portal