TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-274
#OUT Built-In Variable
Any error while pushing OUT causes #OUT to be popped at once. Any other error 
or break occurring while #OUT is pushed causes all but the bottom level of #OUT 
to be popped before the error message is printed.
•
Use #POP #OUT (or POP #OUT) to restore the last OUT file name pushed.
•
Use #SET #OUT (or SET VARIABLE #OUT) to set the name of the file to be used 
by TACL for OUT. Before setting #OUT, you must #PUSH #OUT (unless IN is set 
to $RECEIVE, as noted previously).
The syntax of #SET #OUT is:
file-name
is the name you give the OUT file. You can use the name of a process in place 
of a disk file name; TACL writes output to the process as though it were a file.
If you specify a nonexistent disk file, TACL creates an edit-format file. If you 
specify an existing disk file, lines are appended to the existing file.
Example
This example causes TACL to write 002, 040, and 120 to the file OUTFILE, and then 
the OUT file reverts to its previous status:
#PUSH #OUT
...
#SET #OUT outfile
#OUTPUT /HOLD,COLUMN 5,JUSTIFY RIGHT,WIDTH 3,FILL ZERO/ 2
#OUTPUT /HOLD,COLUMN 13,JUSTIFY RIGHT,WIDTH 3,FILL ZERO/ 40
#OUTPUT /COLUMN 21, JUSTIFY RIGHT, WIDTH 3, FILL ZERO/ 120
#POP #OUT
#SET #OUT file-name










