IBM Embedded SQL programming Database User manual

Below you will find brief information for Database Embedded SQL programming. This document explains how to create database applications in host languages that use DB2 for IBM i SQL statements and functions.

PDF
Document
Database Embedded SQL programming User Manual | Manualzz

Advertisement

Advertisement

/

Advertisement

Key features

  • Use host variables in SQL statements

  • Handle SQL error return codes using the SQLCA

  • Use the SQL diagnostics area

  • Code SQL statements in C and C++ applications

  • Code SQL statements in COBOL applications

  • Code SQL statements in PL/I applications

  • Code SQL statements in RPG/400 applications

  • Code SQL statements in ILE RPG applications

  • Code SQL statements in REXX applications

  • Prepare and run a program with SQL statements

Frequently asked questions

A host variable is a field in your program that is specified in an SQL statement, usually as the source or target for the value of a column.

An indicator variable is a halfword integer variable used to communicate additional information about its associated host variable.

When an SQL statement is processed in your program, SQL places a return code in the SQLCODE and SQLSTATE fields.

The SQL diagnostics area is used to keep the returned information for an SQL statement that has been run in a program.

Preparing document for printing…
0%