Guardian Application Conversion Guide
Converting Basic Elements of a TAL Program
Converting TAL Applications
096047 Tandem Computers Incorporated 3–3
Convert your SOURCE directive to specify declarations from the D-series EXTDECS0
file. Use the procedure names for any D-series enhanced procedures your program
calls:
?SOURCE $SYSTEM.SYSTEM.EXTDECS0 (FILE_OPEN_,
? READX,
? WRITEX,
? FILE_CLOSE_)
Specify only the D-series EXTDECS file (EXTDECS0). The C-series compatible
declarations are also available in this file.
Note Although the file names are identical in the two examples shown here, they actually identify different files
because EXTDECS0 always names the most recent EXTDECS file.
Using the ZSYSTAL
Declarations
Tandem provides source declarations of TAL declarations and structures for Guardian
procedures and system messages in the ZSYSTAL file. This file is typically found on
the $SYSTEM.ZSYSDEFS subvolume. Contact your system manager for the location of
the file on your system.
To use these declarations, include them with your source code using the SOURCE
compiler directive. For example, this SOURCE directive includes the entire ZSYSTAL
file:
?SOURCE $SYSTEM.ZSYSDEFS.ZSYSTAL
The ZSYSTAL file is divided into sections, which allows you to include only the
sections your program actually needs. For example, this SOURCE directive includes
only the process-creation and system-message constant declarations:
?SOURCE $SYSTEM.ZSYSDEFS.ZSYSTAL (PROCESS^CONSTANT,
? SYSTEM^MESSAGES^CONSTANT)
To print a listing of the ZSYSTAL file to check the declarations that are available for
your program, use the FUP COPY command:
10> FUP COPY $SYSTEM.ZSYSDEFS.ZSYSTAL, $s.#lineptr