TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-120
#DELTA Built-In Function
File Manipulation Commands
#DELTA can open and close files and transmit data to and from them. This capability is
often useful for editing a document. Table 9-8 summarizes the syntax and effects of
these commands. Full descriptions follow Table 9-9 on page 9-121.
#DELTA Control Commands
The #DELTA control commands are those that you can use to control the execution of
#DELTA commands. The control commands govern conditional operations, iteration,
and macro execution, and the placement of values in the X and Y registers to govern
y,xUvar$ Unloads x into
variable level
-X = y
xXvar$ Extracts lines to
variable level
Lines from P to x
EOLs put into
variable level
-
y,xXvar$ Extracts chars to
variable level
Characters from y to
x put into variable
level
-
^\ Exits from macro - -
Caution. If you used the /COMMANDS/ option when you invoked #DELTA, do not push, pop,
or in any other way modify the variable level from which #DELTA is receiving its commands;
doing so can cause #DELTA, and possibly TACL, to fail.
Table 9-8. File Manipulation Commands
Command
Description Description Effect on Buffer
Effect on X, Y, and
Pointer (P)
EIfile$
*
Opens file for input - -
EOfile$
*
Opens file for output - -
xP Writes lines Lines from P to x
EOLs sent to output
file
-
y,xP Writes chars Chars from y to x sent
to file
-
xY Reads lines x lines moved from file
to (P)
P = P + size
* You can modify EI and EO commands with the @ flag to change the delimiter; for example: @EI/$trmnl/
Table 9-7. Variable Control Commands (page 2 of 2)
Command Description Effect On Buffer
Effect on X, Y, and
Pointer (P)