Guardian Application Conversion Guide

Converting Basic Elements of a Pascal Program
Converting Pascal Applications
6–6 096047 Tandem Computers Incorporated
Using Guardian File Names
Guardian file names include disk file names, device names (such as a printer or
terminal name), and process file names. You might need to convert the parts of your
program that declare and use file-name variables.
Disk File Names. Your existing program might declare a Guardian disk-file-name
variable. The largest D-series disk file names are:
For permanent files 35 bytes (one byte larger than the external form of a
C-series network file name)
For temporary files 26 bytes (4 bytes larger than the external form of a
C-series network file name)
When accessing Guardian disk files on remote D-series systems in a network, a
converted program can use a D-series network disk file name with an eight-character
volume name (one to seven characters after the dollar sign). A C-series network disk
file name allows a maximum of six characters after the dollar sign in the volume name.
Therefore, you might need to declare your network file-name variables large enough
to include this extra character. For example:
VAR employee : STRING(35) :=
'\newyork.$payroll.july1990.employee';
managers : STRING(35) :=
'\seattle.$disk4.level1.managers ';
Device Names. Your existing program might declare a variable for a Guardian device
name. The largest D-series device names are:
Device name without a node name or qualifier 8 characters
Device name without a node name but with a qualifier 17 characters
Network file name without a qualifier 17 characters
Network file name with a qualifier 26 characters
When accessing devices on remote D-series systems in a network, a converted
program can use an eight-character network device name (one to seven characters
after the dollar sign). A C-series network device name allows a maximum of six
characters after the dollar sign. Therefore, you might need to declare your network
device names large enough to include this extra character. For example:
{ Network device name without a qualifier }
VAR device_name : STRING(17) := '\hamburg.$term001';
{ Network device name with a qualifier }
VAR network_device_name : STRING(26) :=
'\hamburg.$lineptr.#room025';