SQL/MP Programming Manual for COBOL85
Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for COBOL85—429326-004
6-9
Copying Source Code into a Compilation Unit
PARAM SYMSERV
The PARAM SYMSERV command specifies which Symserv process you want to use:
PARAM SYMSERV guardian-name
Follow these guidelines for guardian-name:
•
If guardian-name designates a system other than the system on which the
compiler is running, the SYMSERV parameter is ignored.
•
If guardian-name does not include a volume or subvolume name, the compiler
uses your current default values.
If you omit this command, the compiler uses the volume and subvolume specified in
the PARAM BINSERV command. If you omit both PARAM SYMSERV and PARAM
BINSERV commands, the compiler uses the SYMSERV program file on its own
volume and subvolume.
Copying Source Code into a Compilation Unit
To copy the COBOL source code from a separate file into a compilation unit, use one
of these options:
•
COBOL SOURCE directive
•
COBOL COPY statement
You cannot use SQL statements in a file you are copying with the COPY statement.
For information about the COPY statement or SOURCE directive, see the COBOL85
for NonStop Systems Manual.
The COBOL85 Compiler
The input to the COBOL85 compiler is one or more source files. You must perform
both of these steps:
•
Specify the SQL compiler directive before the first Identification Division in the
compilation unit.
•
Declare an SQLCODE identifier either explicitly as a data item or implicitly with an
INCLUDE SQLCA directive.
For information about the SQLCODE identifier, SQLCODEX identifier, and SQLCA
structure, see Section 9, Error and Status Reporting.