TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-197
#INFORMAT Built-In Variable
#INFORMAT Built-In Variable
Use #INFORMAT to set or obtain the current input format for the TACL IN file.
Result
#INFORMAT returns the current #INPUT formatting mode-PLAIN, QUOTED, or TACL.
Considerations
•
#INFORMAT applies only to input read from the IN file, not to any other input data.
The default format for macro or routine files and function libraries is TACL format;
to change this setting, use a ?FORMAT directive.
•
PLAIN format is always in effect for #REQUESTERs, #SERVERs, and #DELTA file
operations, and for the IN option on #SET and SET.
•
When you first log on, #INFORMAT is initialized to PLAIN.
•
To change the default for your TACL session, use a #SET #IN statement. You can
also specify the IN file when you start a TACL process.
•
To read information from the current IN file, use the #INPUT built-in function.
•
To set or obtain the current formatting mode for the TACL OUT file, use the
#OUTFORMAT built-in variable.
•
If #INFORMAT is TACL, any characters that are converted to internal format on
input are stored with a tilde as a prefix. These characters include {, }, ==, [, ], and |.
•
#INFORMAT can affect how #ARGUMENT interprets arguments. For more
information, refer to the description of #ARGUMENT Built-In Function
on
page 9-21.
•
Use #PUSH #INFORMAT (or PUSH #INFORMAT) to save a copy of the current
#INPUT formatting mode.
•
Use #POP #INFORMAT (or POP #INFORMAT) to restore the last #INPUT
formatting mode pushed.
•
Use #SET #INFORMAT (or SET VARIABLE #INFORMAT) to establish the current
formatting mode.
The syntax of #SET #INFORMAT is:
#INFORMAT
#SET #INFORMAT { PLAIN | QUOTED | TACL }