Guardian Application Conversion Guide

Declaring and Using TACL Variables
Converting TACL Programs
7–2 096047 Tandem Computers Incorporated
Declaring and Using
TACL Variables
This subsection describes how to change TACL declarations for:
File-system error numbers
CPU and PIN variables
Process identifiers
This subsection also provides information on how to:
Avoid subvolume defaulting
Convert between process handles and process file names
Declaring File-System Error
Numbers
File-system error numbers under the C-series operating system are all in the range 0
through 255. The C-series-compatible interface retains the same set of error numbers.
The D-series enhanced interface, however, extends this range beyond 255.
Your existing program might use a BYTE field in a STRUCT for storing a returned file-
system error number. For example:
[#DEF error^info STRUCT
BEGIN
BYTE file^error;
...
END;
]
Change the BYTE field to an INT field to allow for the extended range of file system
error numbers. For example:
[#DEF error^info STRUCT
BEGIN
INT file^error;
...
END;
]
Declaring CPU and PIN
Variables
The C-series-compatible interface allows for PIN values up to 255. Using the D-series
enhanced interface, you can still use low PINs in the range 1 through 254, or you can
use high PINs in the range 256 up to the limit for the CPU.
Your existing program might declare BYTE or INT data types in STRUCTs for CPU
and PIN values. The following example uses BYTE data types:
[#DEF cpu^and^pin STRUCT
BEGIN
BYTE cpu;
BYTE pin;
END;
]