Safeguard User's Guide (G06.24+, H06.03+)

Working with Patterns
Safeguard User’s Guide422089-009
9-11
INFO DISKFILE-PATTERN
If you added this pattern, ADD DISKFILE-PATTERN $*.*.*, to the above patterns, a
one-dimensional search that will add the pattern “*.*” to every volume that matches
“$*”.
If you had volumes $DATA1, $DATA2, and $DATA3, the following patterns would
be added:
5. $DATA1.*.*
6. $DATA2.*.*
7. $DATA3.*.*
If you now did INFO DISKFILE-PATTERN $*.*.*, which patterns would be
returned? Patterns 1, 2, 3, 4, 5, 6, and 7 are wrong. The answer is 5, 6, and 7.
That command is a one dimensional search. It is asking for the specific pattern “*.*”
on all volumes that match “$*”.
If you use INFO DISKFILE-PATTERN $*.*.*, ALL, you get all patterns. This is a multi-
dimensional search, that is asking for any patterns that match “*.*” from all volumes
that match “$*”.
“ALL directs Safeguard to treat all wildcards as search characters. If you omit “ALL”,
the wildcards in the subvolume and filename are the actual characters you are looking
for.
INFO DISKFILE-PATTERN Examples
To display the diskfile pattern $DATA.*TEST.* (that is, display a single diskfile
pattern) using display user as name:
=DISPLAY USER AS NAME
=INFO DISKFILE-PATTERN $DATA.*TEST.*
This output appears:
LAST-MODIFIED OWNER STATUS WARNING-MODE
$DATA.*TEST
* 28SEP04, 5:44 MLH1.MGR THAWED OFF
\KONA.PROD.CARLY R
\KONA.TEST.JIMMY R,W
GROUP TEST R,W,E,P,C
GROUP \KONA.TEST R
\*.*.*
To display the diskfile pattern $A.B.*:
INFO DISKFILE-PATTERN $A.B.*
To display all diskfile patterns that match the search pattern $A.B.*:
INFO DISKFILE-PATTERN $A.B.*, ALL