C Language Support - Preprocessor2 for Embedded SQL

Teradata Preprocessor2 for Embedded SQL Programmer Guide

Product
Preprocessor2 for Embedded SQL
Release Number
15.00
Language
English (United States)
Last Update
2018-09-27
dita:id
B035-2446
lifecycle
previous
Product Category
Teradata Tools and Utilities

C Language Support

PP2 supports C in:

  • IBM z/OS mainframe environment
  • Network‑attached environment
  • UNIX OS
  • Windows
  • Note: Some compilers will generate C compiler warnings unless the following include statements are inserted in the Teradata supplied samples:

     #include <stdio.h>
     #include <string.h>

    The C statements generated by PP2, when run in one of the above environments, are acceptable to the compilers for those environments. Execute the C precompiler by invoking module PPCMAIN.

    See Chapter 2: “Connecting to the Database and Invoking PP2,” for details. For linkage details, see “Application Linking for Visual C++ on Windows” on page 226.

    Every C program that requests Teradata services through embedded SQL statements requires a communications area. SQLCA is documented in “SQL Communications Area (SQLCA)” in SQL Stored Procedures and Embedded SQL (B035‑1148).