TACL Reference Manual
Statements and Programs
HP NonStop TACL Reference Manual—429513-018
5-7
?FORMAT Directive
Considerations
•
The ?FORMAT value for a library file is set to TACL at every ?SECTION directive.
•
The ?FORMAT value for a macro or routine file that starts with a ?TACL directive
is set to TACL at the beginning of the file.
Example
This example shows the effects of the ?FORMAT directive:
?SECTION this^section ROUTINE
==
== PLAIN format allows a multiple-line #OUTPUT function to
== output text containing special characters without having
== to use tildes
==
#SET #OUTFORMAT PLAIN == Set display format to PLAIN
[#OUTPUT Using ?FORMAT PLAIN:
?FORMAT PLAIN
+------------------------+
| COMMENT [ <argument> ] |
+------------------------+
?FORMAT TACL
]
#OUTPUT
[#OUTPUT Using ?FORMAT QUOTED:
?FORMAT QUOTED
"+------------------------+"
"| COMMENT [ <argument> ] |"
"+------------------------+"
?FORMAT TACL
]
#OUTPUT
#OUTPUT
#OUTPUT ?FORMAT TACL, with quotes: "[#MYTERM]"
#OUTPUT ?FORMAT TACL, without quotes: [#MYTERM]
#OUTPUT
?FORMAT PLAIN
#OUTPUT ?FORMAT PLAIN, with quotes: "[#MYTERM]"
#OUTPUT ?FORMAT PLAIN, without quotes: [#MYTERM]
#OUTPUT
?FORMAT QUOTED
#OUTPUT ?FORMAT QUOTED, with quotes: "[#MYTERM]"
#OUTPUT ?FORMAT QUOTED, without quotes: [#MYTERM]
#OUTPUT
?SECTION next^section ROUTINE
== Format reverts to TACL because this is a new section