Guardian Application Conversion Guide

Converting Basic Elements of a COBOL85 Program
Converting COBOL85 Applications
096047 Tandem Computers Incorporated 4–5
However, a converted COBOL85 program cannot use a remote D-series file name with
an eight-character volume name:
In a USING or GIVING phrase in a SORT or MERGE statement
For a file using fast I/O
For spooler job file names
Because of this extra character in the volume name, the largest D-series fully qualified
disk file name is 35 characters. You might need to declare your network file-name
data items large enough to include this extra character. For example:
* Fully qualified D-series disk file name.
01 DISK-FILE-NAME PIC X(35)
VALUE "\NEWYORK.$USERDSK.JUNE1990.REPORTS2".
Device Names. Your existing program might declare a Guardian device name. The
largest C-series device name without a system name or a qualifier is eight characters (a
dollar sign and one to seven characters). The largest C-series network device name
without a qualifier is 15 characters (a backslash and a system name followed by a
period, a dollar sign, and one to six characters).
When accessing devices on other D-series systems in a network, a converted program
can use an eight-character remote device name (one to seven 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 D-series device name without a qualifier.
01 DEVICE-NAME PIC X(17)
VALUE "\HAMBURG.$PRTR004".
* Network D-series device name with a qualifier.
01 DEVICE-NAME-QUALIFIER PIC X(35)
VALUE "\HAMBURG.$SPOOLER.#LASRPRT".
Process File Names. Your existing program might declare a variable for a C-series
Guardian process file name. The D-series operating system uses D-series process file
names instead of C-series process file names. Use C-series process file names for
compatibility with unconverted C-series procedures.
A D-series process file name is a variable-length string data item with its length
specified as a separate data item. A sample declaration follows:
* D-series process file name declaration.
01 PROCESS-STUFF.
03 PROC-NAME-LEN USAGE NATIVE-2.
03 PROCESS-FILENAME.
05 P-F OCCURRS 1 TO 47 TIMES DEPENDING ON PROC-NAME-LEN