TACL Reference Manual
Summary of Commands and Built-In Functions
HP NonStop TACL Reference Manual—429513-018
7-14
Processing Text in Variables
Processing Text in Variables
TACL provides two types of mechanisms that manipulate text in variables:
•
Built-in functions and commands
•
The #DELTA low-level text processor, accessed through the #DELTA built-in 
function
For more information about other functions and commands that process text, see the 
individual function and command descriptions in Section 8, UTILS:TACL Commands 
and Functions and Section 9, Built-In Functions and Variables. In addition, the TACL 
Programming Guide contains examples showing how to use these functions.
The commands in Table 7-11 provide data manipulation capabilities.
Table 7-11. Data Manipulation Commands  (page 1 of 2)
Command Description
_COMPAREV  Compares two variables
COMPUTE  Performs calculation and displays result
_CONTIME_TO_TEXT  Converts numeric date and time to text form
_CONTIME_TO_TEXT_DATE  Converts numeric date to text form
_CONTIME_TO_TEXT_TIME  Converts numeric time to text form
COPYVAR  Copies one variable to another
FILETOVAR  Copies data from a file and appends it to a variable
JOIN  Converts multiple-line variable to single-line variable
KEEP Removes bottom levels from a variable stack
_LONGEST  Returns length of longest element in a space-separated 
list
_MONTH3  Returns three-letter abbreviation for a month number
OUTVAR  Displays contents of a variable
POP  Removes top level of variable or built-in function
PUSH A Adds a level to a variable
SET VARIABLE  Changes contents of a variable level
VARTOFILE  Copies data from a variable to a file
VCHANGE  Changes all occurrences of one string to another string 
within a range of lines in a variable
VCOPY  Copies a range of lines from a variable and inserts it at a 
specified line position in another variable
VDELETE  Deletes a range of lines from a variable
VFIND  Searches a range of lines in a variable for a specified 
string










