MIMIX supports the ability to specify asterisks to define basic and advanced generic names in data group IFS entries.
A basic generic name contains one or more characters followed by an asterisk (*) as its last (trailing) character. The asterisk is used as a wildcard character. An example is: /ABC*. Basic generic names can be specified in IFS entries that include or exclude IFS objects.
An advanced generic name contains one or more asterisk (*) characters embedded within the name that are used as wildcard characters. An advanced generic name is allowed only when the IFS entry specifies *EXCLD as its Process type (PRCTYPE). Examples are: /ABC/*.LOG or /ABC/*TMP*/*.WRK. An *EXCLD IFS entry with an advanced generic name acts as a filter to exclude objects that would otherwise be included by a match to an *INCLD IFS entry with a basic generic name.
The Work with DG IFS Entries display (WRKDGIFSE) identifies these entries with the value *EXCLD(A) in the Process Type column.
Examples of implementing advanced generic names to exclude directories. It is important to understand how the existence of basic and advanced generic names in an IFS entry that specifies *EXCLD will affect how objects are selected when the set of IFS entries for a data group is evaluated.
Consider the example IFS entries in Table 20 for IFS objects associated with an SSH directory:
-
If you need to include only the SSH objects but nothing else from user SUZYQ’s directory, and need to include all other IFS objects for other users in the /home directory, you can accomplish this with entries 1 through 4, without entry 5.
-
If you need to include the /home directory but exclude SSH objects for every user in the /home directory as well as exclude everything associated with user SUZYQ, you can accomplish this with entries 1 through 5.
When entries 1 through 5 exist, although all SSH objects in path
/home/SUZYQ/.ssh/
are a match to
*INCLD entry 4, these SSH objects are excluded because the match
to entry 4’s basic generic allows entry 5 to be evaluated, and
the path also matches entry 5. This causes the SSH objects in
SUZYQ to be excluded. The directory SUZYQ and its other content
are excluded by entries 2 and 3.
When entries 1 through 5 exist, all objects in path
/home/JOHNDOE/.ssh/
are excluded
because of entries 1 and 5.
IFS Entry |
Entry Type |
Specified Name in Entry |
Description |
---|---|---|---|
1 |
*INCLD |
|
Basic generic name to include private directories of all users. |
2 |
*EXCLD |
|
Specific name to exclude the directory for this user. |
3 |
*EXCLD |
|
Basic generic name to exclude contents of this user’s directory. |
4 |
*INCLD |
|
Basic generic name to include the contents of this user’s SSH directory. Note: This rule is effectively overridden and not used when entry 5 exists.
|
5 |
*EXCLD |
|
Advanced generic name to exclude objects in each users SSH directory SSH |