Generic Profile Rules—Enhanced Generic Naming Inactive
In the DATASET class, you can use generic characters as follows:
- Specify % to match any single character in a data set name
- Specify * as follows:
- As a character at the end of a data set profile name (for example, ABC.DEF*) to match zero or more characters until the end of the name, zero or more qualifiers until the end of the data set name, or both
- As a qualifier at the end of a profile name (for example, ABC.DEF.*) to match one or more qualifiers until the end of the data set name
- As a qualifier in the middle of a profile name (for example, ABC.*.DEF) to match any one qualifier in a data set name
- As a character at the end of a qualifier in the middle of a profile name (for example, ABC.DE*.FGH) to match zero or more characters until the end of the qualifier in a data set name.
Note: For profiles in the DATASET class, the high-level qualifier
of the profile name must not be, nor may it contain, a generic character—for
example,
*.ABC, AB%.B, and AB*.AB are
not allowed.Tables are provided to show the variety of profiles that can be created using generics, using enhanced generic naming, and what happens to the profile protection if enhanced generic naming is turned off.
Table 1 and Table 2 provide examples of data set names
using generic naming. Enhanced generic naming has not been turned
on (SETROPTS NOEGN, the default, is in effect).
Table 1 and Table 2 provide examples of data
set names with enhanced generic naming (SETR EGN is
on).
Table 3 and Table 4 provide examples of data set names if enhanced generic naming is turned off after being turned on. It is not recommended that you turn EGN off after you have turned it on.
| Profile Name | AB.CD* |
AB.CD.* |
|---|---|---|
| Resources protected by the profile | AB.CDAB.CDEFAB.CD.EFAB.CD.XYAB.CD.EF.GH |
AB.CD.EFAB.CD.XYAB.CD.EF.GH |
| Resources not protected by the profile | ABC.DEFABC.XY.XY.DEF |
AB.CDAB.CDEFABC.DEFAB.XY.XY.DEF |
| Profile Name | ABC.%EF |
AB.*.CD |
AB.CD*.EF |
|---|---|---|---|
| Resources protected by the profile | ABC.DEFABC.XEF |
AB.CD.CD |
AB.CDEF.EFAB.CDE.EF |
| Resources not protected by the profile | ABC.DEFGHIABC.DEF.GHIABC.DDEF |
AB.CDAB.CD.EFAB.CDEFABC.DEFABC.XY.CDAB.XY.XY.CD |
AB.CD.XY.EF |