Filter pattern masks

Many commands allow you to specify powerful filtering masks using extended ACS masking characters, as shown in the following table.

Note: Your installation may need to specify different masking characters to achieve the desired result if your code tables are different from the U.S.A. EBCDIC code set.
Mask Hex Description
*

(Single character)

5C

Can be used before an item or after an item (or both) to designate a wildcard character position.

Consider the following example:

*PROD

An item is selected if the last four character end in PROD regardless of the starting characters. Using the * character before and after an item (*ZREM*) means that item is to be selected if any character string matches ZREM in its name.

Note: You can not use an * in the middle portion of a single item (except for data set names). Use the % character (see below) for that purpose.
% 6C

Denotes a single character placeholder value, which can be alphanumeric or any special character. The % character can be used in any position order.

Consider the following example:

CRM%%ER6

An item is to be selected if it is 8 characters in length and the first three characters are CRM and the last three characters are ER6. The two middle placeholder values can be any characters.

< 4C

Similar to the % value, the < character denotes a placeholder value for alphabetic or national characters only. The < character can be used in any position order.

Consider the following example:

CR<<ER*

An item is to be selected if the first two characters are CR, the third and fourth characters must be alphabetic or national characters, the fifth and sixth characters are ER, and any remaining characters are allowed.

> 6E

Similar to the % value, the > character denotes a placeholder value for only numeric characters. The > character can be used in any position order.

Consider the following example:

CR>>ER*

An item is to be selected if the first two characters are CR, the third and fourth characters must be numeric, the fifth and sixth characters are ER, with any remaining characters allowed.

| 4F

Denotes a multiple character placeholder value for alphanumeric characters. The | character can be used only in the final position of the mask to represent ‘any number of alphanumeric characters.’

Consider the following example:

ABC.PROD1017.|

An item is to be selected if the first three characters are ABC, followed by a period (.), followed by the characters PROD1017, followed by a period (.), followed by one or more alphanumeric characters.

**

(Double asterisk)

5C5C

Allows compatibility with standard ACS and DFSMSdss filtering masks. This mask is used only for partially qualified data set names. The * or ** characters can be used in any qualifier position to denote a wildcard node.

Consider the following example:

CRFM*.*VER.**

A data set entry is to be selected if it has at least two qualifiers and the first qualifier starts with CRFM, the second qualifier must end with VER, and any remaining qualifiers may contain any number of alphanumeric characters.

Note: As with common data set name masking, any combination of *, **, %, < and > characters can be used for the item mask value.
! 5A

Similar to the % value, the ! character denotes a placeholder value for national characters only. The ! character can be used in any position order.

National characters are @, #, and $.