SQL Supplement for H-Series RVUs

SQL/MP Programming Manual for COBOL
HP NonStop SQL Supplement for H-Series RVUs529446-005
1-4
COBOL in the Open System Services (OSS)
Environment
6. Execute the SQL program file either interactively from a TACL or OSS prompt or
programmatically by using the COBOL CREATEPROCESS or
CLU_PROCESS_CREATE_ routine.
SQL/MP software supports the development of COBOL programs containing
embedded SQL statements in both the Guardian and OSS environments. For more
information, see Explicit Program Compilation on page 1-5, and Section 7, “Program
Execution,” of the SQL/MP Programming Manual for COBOL.
COBOL in the Open System Services (OSS)
Environment
SQL/MP software supports the development of COBOL programs in the OSS
environment as well as in the Guardian environment. In the OSS environment, you can
code a COBOL program with a text editor such as vi and then use one of these HP
COBOL utilities:
cobol utility to invoke the COBOL85 compiler, Binder program, Accelerator, and
SQL compiler on a TNS/R system
nmcobol utility to invoke the NMCOBOL compiler, ld or nld linker, and SQL
compiler on a TNS/R system
ecobol utility to invoke the ECOBOL compiler, eld linker, and SQL compiler on a
TNS/E system
For more information, see Running HP COBOL Compilers in the OSS Environment on
page 1-24.
Effect on Conformance to ISO/ANSI Standards
When an HP COBOL program does not use the SQL directive (which notifies the
COBOL85, NMCOBOL, or ECOBOL compiler to expect embedded SQL), embedded
SQL does not affect HP COBOL conformance to the COBOL ISO/ANSI standard.
When a program does use the SQL directive, embedded SQL affects HP COBOL
conformance to the COBOL ISO/ANSI standard only to the extent required to process
SQL statements. For information about HP COBOL conformance to the COBOL
ISO/ANSI standard, see the COBOL Manual for TNS and TNS/R Programs or the
COBOL Manual for TNS/E Programs.
The HP COBOL embedded SQL implementation conforms to the ANSI Database—
Embedded SQL Standard (ANSI X3.168-1989), with the restrictions and extensions
mentioned in the manual.