Family of resources (using * and + symbols)
You can use the symbols * and + as part of an identifier to specify a family of resources. * represents any number of characters (including none), and + represents a single character, for example:
| Example | Identifiers output |
|---|---|
| A* | all identifiers beginning with A |
| *DATA* | all identifiers containing the characters DATA |
| TERM00+ | all 7-character identifiers starting with TERM00. |
Use of * and + is restricted to selecting existing resources and cannot be used either to create a new set of resources or to discard resources.
Note: The INQUIRE command and the SET command may use the
generic name in a different way. The following two examples illustrate
the difference:
CEMT INQUIRE FI(*) DSN(ABCD*)
lists all the files with data sets with a name beginning with ABCD.
CEMT SET FI(*) DSN(ABCD*) CLO
associates all
your files with data set ABCD* and closes them all. Thus the generic name has the expected effect only for the resource itself.