Guardian Application Conversion Guide
Converting Basic Elements of a Pascal Program
Converting Pascal Applications
6–4 096047 Tandem Computers Incorporated
Importing the
ZSYSPAS Declarations
Tandem provides source declarations for Guardian procedures and system messages
in the ZSYSPAS file. This file is typically found on the $SYSTEM.ZSYSDEFS
subvolume. Contact your system manager to find the location of this file on your
system.
To use these declarations, import them using the SOURCE or CSOURCE compiler
directive. For example, this SOURCE directive imports the entire ZSYSPAS file
without printing the contents of the file:
IMPORT BEGIN
?SOURCE $SYSTEM.ZSYSDEFS.ZSYSPAS, NOLIST
END; { IMPORT }
The ZSYSPAS file is divided into sections, which allows you to import only the
sections your program actually needs. For example, this SOURCE directive imports
only the process-creation and system-message constant declarations and prints the
contents of each section:
IMPORT BEGIN
?SOURCE $SYSTEM.ZSYSDEFS.ZSYSPAS (PROCESS_CONSTANT,
? SYSTEM_MESSAGES_CONSTANT)
END; { IMPORT }
To print a listing of the ZSYSPAS file to check the declarations that are available for
your program, use the FUP COPY command:
10> FUP COPY $SYSTEM.ZSYSDEFS.ZSYSPAS, $s.#lineptr
Naming Standard Files in
the Module Heading
The D-series version of the Pascal compiler requires that you name the INPUT,
OUTPUT, and STDERR files in a module heading if the module accesses these files
using Pascal I/O routines and if the program does not contain a Pascal program
heading (that is, if the main program is written in a language other than Pascal). Such
a module should have a heading like the following:
MODULE chart INPUT, OUTPUT, STDERR