TACL Reference Manual
Statements and Programs
HP NonStop TACL Reference Manual—429513-018
5-3
Function Calls
•
To call your program recursively, use %0% for a macro or #ROUTINENAME to
obtain the name of your routine. For examples, see the TACL Programming Guide.
•
The ?FORMAT directive and #INFORMAT built-in function affect how TACL
interprets an argument. Under control of the QUOTED input format, STRING
arguments allow inclusion of TACL metacharacters (square brackets, vertical line,
braces, and double equal sign) as ordinary data characters; quotation marks do
not override metacharacters under control of TACL or PLAIN input format.
•
Each logical line in a TACL program can contain a maximum of 239 characters. To
extend an 80-character physical line to 239 characters, you can use the
continuation character (&), or you can enclose the statement within square
brackets ([]). Each physical line length depends on the terminal device. The 65nn
terminal uses a line length of 80 characters by default. If a function call and its
associated arguments exceed the maximum physical line length, you can enclose
the statement within square brackets ([]) to treat multiple physical lines as a single
statement.
•
When TACL encounters an enclosure, it departs from its standard method of
evaluating bracketed text. Instead of expanding bracketed text, TACL defers
evaluation of all statements in an enclosure until the controlling information is
processed. For example, in an #IF statement, TACL evaluates the expression
before invoking the code associated with |THEN| or |ELSE|.
Example
This example shows an #IF built-in function call with |THEN| and |ELSE| labels:
[ #IF x > 3 |THEN|
#OUTPUT Incorrect number
|ELSE|
#OUTPUT x = [x]
]
File-Name Arguments
For file-name arguments, these guidelines apply:
•
TACL creates a file name based on what you specify and what the current defaults
are. To specify a file that is not in the current default subvolume (or volume),
include the appropriate subvolume (or volume) name. If you do not specify the
node name, then TACL uses the current default system. For example, if your
current defaults are \LOCAL.$WORK.MINE and you want to specify the file
TIMING in subvolume IGNITION of volume $TUNEUP on the remote system
\AUTOS, you must specify:
\AUTOS.$TUNEUP.IGNITION.TIMING
•
TACL performs file-name expansion for partial file names that you specify as
arguments in calls to commands and built-in functions that accept file names. A
partial file name is one that omits the node name, volume, or subvolume of a full