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 #100 background imageLoading...
Page #100 background image
Comparing Files
Accessing Files
4–12 107365 Tandem Computers Incorporated
Comparing Files Use the routine in Figure 4-6, fcomp, to perform a line-for-line comparison of two
files. A mismatch does not resynchronize the two files.
Fcomp reads a record from each of the two files and then calls #COMPAREV to
compare the records. The maximum line length for an edit file is 239 bytes; fcomp
uses this value as a maximum line length for the input records.
Fcomp supports two options: you can limit the comparison to a range of columns
within the files, and you can write the results to a file.
Fcomp calls the getargs macro (from Section 3, “Developing TACL Routines”) and
the defaultvars macro (from Section 2, “Developing TACL Programs”):
Getargs parses the arguments of a calling routine; it accepts sets of three
arguments:
REQUIRED or OPTIONAL specify whether an argument must be present or
can be omitted from the list of arguments.
Type specifies an #ARGUMENT alternative, such as FILENAME or
KEYWORD.
Variable is pushed and set by the TEXT option of #ARGUMENT if the
argument is supplied; otherwise, the variable remains empty.
defaultvars accepts a space-separated list of space-separated pairs (variable
levels and values) and sets each empty variable level to its corresponding value.
For each pair of arguments:
Variable-level
specifies the name of a variable level.
Value
specifies the corresponding value, or can be empty. Value cannot
contain any spaces.
To call fcomp , load the associated file and enter:
fcomp
file1
,
file2
[, [
f1
] [, [
f2
] [, [
result
]]]]
where
file1
is the name of one of the comparison files.
file2
is the name of the other comparison file.
f1
is a starting field range (optional).

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