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 #63 background imageLoading...
Page #63 background image
Processing Arguments
Developing TACL Routines
107365 Tandem Computers Incorporated 3–7
You could call this routine from your program:
?SECTION caller ROUTINE
#FRAME
== call getnumber with the starting position
== and the line of text
#PUSH pfree position line
#SET line This is a test number: 53
#SET position 23
#SET pfree [getnumber [position] [line]]
#OUTPUT [pfree]
#UNFRAME
The routine performs more checking than #CHARGET and is more flexible with the
length of a space-separated number. The routine, however, takes longer to write,
making it most useful if you plan to perform this action many times in your program.
Processing File Name Arguments
The following routine parses an OUT option enclosed in slashes. The routine first
checks for a slash (/). If present, the routine checks for the word OUT, followed by a
file name and an ending slash. The routine then sets the TACL OUT file to the file
specified in the argument list. If the user does not specify an OUT option, this routine
displays the current setting of the OUT file. To run the routine, type the name of the
file that contains the code:
?TACL ROUTINE
#FRAME
#PUSH out outfile
[#CASE [#ARGUMENT SLASH END OTHERWISE]
|1| == Found the first slash character
SINK [#ARGUMENT KEYWORD /WORDLIST out/]
SINK [#ARGUMENT /VALUE outfile/ FILENAME /SYNTAX/]
#OUTPUT [outfile]
SINK [#ARGUMENT SLASH]
SINK [#ARGUMENT END]
#PUSH #OUT
#SET #OUT [outfile]
|2| == No arguments; display the current OUT file
#OUTPUT The current OUT file is [#OUT]
|OTHERWISE| == Unknown argument
#OUTPUT Invalid argument
]
#OUTPUT [outfile]
#UNFRAME

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