Previous Topic: Filtering ListsNext Topic: Using Lists


Name Mask Formation

A name mask is used to specify the names of the list items which are to be selected.

Apart from containing the normal characters of a valid i OS system name, a Toolkit name mask may contain any combination of the following three special characters:

Type

Character

Location in Mask

Scan action

Wild

'?'

Anywhere in Mask

Match on any character

Generic

'*'

At the end of the Mask

Generic name beyond this character

Contains

'*'

Anywhere within the Mask

Floating scan beyond this character

Name Masking Examples:

Filtering Examples:

Your example is an object list call FRED in library QGPL with the following items in it:

To select all RPG programs in object list FRED that are owned by user ME and that have object names:

Enter the following command:

YFLTOBJLST OBJ((*FRED*) (M?SH))OBJTYPE (*PGM) OWNER(ME) + OBJLST(QGPL/FRED)

Your original list would thus be filtered down to: