TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-178
#FILENAMES Built-In Function
Consideration
File names within a volume are returned in alphabetical order, but volumes are
processed in logical-device number order.
Examples
This example illustrates the output of the #FILENAMES built-in function:
17> #OUTPUT [#FILENAMES $BOOKS.TACL.SEC*]
$BOOKS.TACL.SEC01 $BOOKS.TACL.SEC02 $BOOKS.TACL.SEC03
18>
The asterisk in the file-name template instructs #FILENAMES to display the names of
all files that begin with SEC, regardless of which, or how many, characters follow. This
example illustrates the use of two file-name template characters. The asterisk (*) in the
subvolume indicates that you want TACL to search for any subvolume that begins with
BOOK. The question mark (?) in the file name indicates that you want to list the name
of any file whose name has SECT in the first four positions, any character in the fifth
position, and a 2 in the sixth position:
18> #OUTPUT [#FILENAMES book*.sect?2]
BOOK1.SECT02 BOOK2.SECT12
19>