EasyManua.ls Logo

HP TACL User Manual

HP TACL
235 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #33 background imageLoading...
Page #33 background image
Processing Character Data
Developing TACL Programs
107365 Tandem Computers Incorporated 2–13
Global Editing Commands Use the commands in Table 2-2 to perform editing operations on the entire contents of
a variable or a range of lines within the variable.
Table 2-2. Global Editing Commands
Command Description
VCHANGE Changes all occurrences of one string to another string in a range of consecutive
lines in a variable. VCHANGE is not case-sensitive.
VCOPY Copies a range of lines from one variable and inserts them at a given line position
in another variable.
VDELETE Deletes a range of consecutive lines in a variable.
VFIND Finds all lines containing occurrences of a specified string in a range of lines in a
variable. VFIND is not case-sensitive.
VINSERT Inserts lines from the TACL IN file at a given line position in a variable.
VLIST Lists a range of consecutive lines in a variable.
VMOVE Deletes a range of lines from one variable and inserts them at a given line position
in another variable.
Unlike the built-in functions, the commands in Table 2-2 do not return a result.
Instead, each of these commands (except VINSERT) lists the lines it operates on, with
sequence numbers, to either the TACL OUT file or another user-specified file. You can
append copies of the lines to an existing variable.
To use these commands, specify a range of line numbers or all of the lines in the
variable (the default). If you use these commands to search for text or change text, the
process is not case-sensitive; TACL performs the operation on all instances of the text.
To specify a case-sensitive text change, use a line-editing or character-editing function,
listed in Table 2-1.
The following code reserves the name of a variable called sample2:
12> #PUSH sample2
(The variable is initialized as soon as you store data in it.)
To insert several lines into the variable, starting at line 1, enter:
13> VINSERT sample2 1
1 The name of this variable is "sample2."
2 There are 37 characters in this line.
3 This is the last line in the variable.
To terminate input, type CTRL/Y (or a line that contains two slashes—//).

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the HP TACL and is the answer not in the manual?

HP TACL Specifications

General IconGeneral
NameHP TACL
PurposeTask automation, system management, and application control
CategorySoftware
PlatformHP NonStop
TypeScripting language
DeveloperHewlett-Packard

Summary

Section 1 An Overview of TACL

Running the Examples in This Manual

Instructions for executing manual examples, including setting required variables.

About This Manual

Section 2 Developing TACL Programs

Processing Character Data

Covers tasks like constructing text strings, analyzing output, and manipulating characters.

Debugging TACL Programs

Introduces the TACL debugger for step-by-step execution and variable examination.

Section 3 Developing TACL Routines

Processing Arguments

Details how routines handle arguments using #ARGUMENT, including options and alternatives.

Writing an Exception Handler

Explains handling events like BREAK keys or TACL errors using exception handlers.

4 Accessing Files

#REQUESTER Operation

Describes the #REQUESTER function for opening files and initiating I/O operations.

Requesting Waited Reads

Explains opening files for waited read operations using #REQUESTER.

5 Initiating and Communicating With Processes

Initiating a Process: RUN and #NEWPROCESS

Covers starting processes using RUN and #NEWPROCESS, including startup options.

6 Running TACL as a Server

Running a TACL Process as a Server

Explains making a TACL process a server by establishing its IN file as $RECEIVE.

Running TACL Code as a Server

Details providing TACL code for a TACL-server process using #INPUTV and #REPLYV.

Using TACL as a Pathway Server

Describes creating a Pathway environment with TCP and TACL servers to process requests.

7 Using Programmatic Interfaces

8 Example of a System Management Program

Related product manuals