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 #130 background imageLoading...
Page #130 background image
Using $RECEIVE
Initiating and Communicating With Processes
5–22 107365 Tandem Computers Incorporated
For nowaited communication, TACL sends the WRITEREAD and continues
executing code. Each time you append a line to prompt_var, the TACL process
reads a record from $T1 and appends it to read_var. To open a running process
and specify nowaited communication, issue a #REQUESTER READ call without
the WAIT option. The following statement opens $T1 for nowaited I/O:
#REQUESTER READ $T1 error_var read_var prompt_var
To wait for completion of the read operation, and when you are finished writing to
the process, use the #WAIT built-in function to wait until read_var contains
data. To avoid writing over data that has not yet been transmitted, use #WAIT to
make sure the previous operation has finished.
Sending Messages to a Process
The following examples show how to use #REQUESTER to communicate with
processes.
Use the routine in Figure 5-10, send, to open a terminal and write a message to line 25
of the terminal. The syntax is:
send
device-id text
The #OUTPUT statements output_help_text in this example do not follow the
indentation style guidelines in Section 1, β€œAn Overview of TACL.” This modification
avoids extra spaces in the display.
Figure 5-10. Sending Messages to a Terminal (Page 1 of 3)
?SECTION send ROUTINE
[#CASE [#EXCEPTION]
|_CALL| == code to execute when first entering the routine
#FRAME
[#PUSH error_message,
destination_name,
message,
temp_message,
error,
send_message,
req_status,
output_time,
origin_time,
origin_time_hh,
origin_time_mm]
|_ERROR| == code to execute when an _ERROR is detected
#ERRORTEXT /CAPTURE error_message/
#OUTPUT Send Terminated - Error: [error_message]
#UNFRAME
#RETURN

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