Previous Topic: z/OS C Language Sample JCLNext Topic: Distinguishing SQL Statements


Embedding SQL Statements in Host Programs

You can use SQL statements by embedding them in COBOL, PL/I, Assembler, or C host language programs. Alternatively, some statements can be submitted online through the CA Datacom Datadictionary Interactive SQL Service Facility. See Statement Execution Table.

Detailed information about coding embedded SQL in the various languages can be found as follows:

COBOL

Information begins in Coding Embedded SQL in COBOL.

PL/I

Information begins in Coding Embedded SQL in PL/I.

Assembler

Information begins in Coding Embedded SQL in Assembler.

C language

Information begins in Coding Embedded SQL in C.

When you embed SQL in a host program, your activities include making use of:

  1. Preprocessor options (see Using Preprocessor Options), and
  2. SQL statements (see SQL Statements).