Some
spdsclean options, such as –DOMAINS use wildcards
and pattern matching functions. The spdsclean utility uses the following
wildcard and pattern matching rules:
-
Character strings must match the
LIBNAME domain name from the LIBNAME file. The match is not case sensitive.
-
Using
. or
? characters in the search pattern will
find a wildcard match to any single character in a LIBNAME domain
name in the LIBNAME file.
-
The
* character
terminates the pattern and finds wildcard matches to all remaining
characters in the LIBNAME domain name in the LIBNAME file.
For example,
the -domains pattern '
?test*' will match
the domains '
ATEST1', '
ATEST123', '
ATESTXYZ', '
CTEST1', and so on from a LIBNAME file. The -domains pattern '
test*' will match only the domain name '
TEST' from the LIBNAME file.
Note: When you use wildcard characters in a -domains
pattern, follow the rules for your command shell (such as ksh) to
ensure that these characters are passed to the spdsclean command.
For example, a ksh command shell user would need to enclose the wildcard
pattern in quotation marks. The question marks ensure that the wildcard
pattern matching occurs relative to the spdsclean command.
spdsclean -domains "?test*"
You can
also disable command shell globbing for the execution of the
spdsclean command.