The FILTERID macro filters on an alphanumeric field.
This macro supports the following three positional parameters:
Specifies the name of a label to branch to when PAT is not matched.
Specifies the pattern to match. The pattern is a text string to match against the content of VAR. Each position of VAR is matched against PAT, until a mismatch is found, or until a blank is found in VAR.
Specifies the name of the field or variable to filter.
Example: FILTERID Macro
In this example, all remaining processing in the current JOB is skipped if the value of SMF74SER does not begin with TSO.
%FILTERID SMF74SER 'TSO*' JOB
In this example, processing jumps to the SKIPIT label if the value of SMF74SER does not end in 01.
%FILTERID SMF74SER '????01' SKIPIT
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |