Previous Topic: SYSVPROC Macro

Next Topic: SMFDATE Macro

FILTERID Macro

The FILTERID macro filters on an alphanumeric field.

This macro supports the following three positional parameters:

FAIL

Specifies the name of a label to branch to when PAT is not matched.

PAT

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.

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