NetBase for MPE Reference Guide

Using NBDIR
4-5
Wildcards within NBDIR
NBDIR supports full use of wildcards in its LIST commands. However, it supports wildcards in only a
limited manner for FILE, SHADOW and PROGRAM entries. For directory entries, you may use an
unqualified @ for either the file portion or for both the file and group specifications.
FILE @.group.account, HP995
FILE @.@.account, FOX
NBDIR does not support partial wildcarding for directory entries.
FILE M@.pub.prod is invalid.
Full wildcarding is not supported for directory entries because the NetBase shell performs a
maximum of three directory lookups when a file is opened. Full wildcarding is supported on LIST
commands because the LIST command is performed against the KSAM file associated with the
directory. The shell will first look for the fully qualified file entry filename.group.account. If that is
not found, it will search for the entry @.group.account for the file being opened. If that entry is not
found, the shell will search once again, this time looking for @.@.account. By limiting the
variations for the file entries in NBDIR, the shell can search the directory quickly, reducing overhead
and improving performance.