C Language Support |Teradata Preprocessor2 for Embedded SQL (PP2) - C Language Support - Teradata Preprocessor2

Teradata® Preprocessor2 for Embedded SQL Programmer Guide - 20.00

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Teradata Preprocessor2
Release Number
20.00
Published
October 2023
ft:locale
en-US
ft:lastEdition
2023-11-20
dita:mapPath
nyr1691484085721.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
xfi1470440464166
Product Category
Teradata Tools and Utilities
PP2 supports C in:
  • IBM z/OS mainframe environment
  • Workstation-attached environment
    • UNIX OS
    • Windows
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 mentioned environments, are acceptable to the compilers for those environments. Execute the C precompiler by invoking module PPCMAIN.

For details, see Connecting to the Database and Invoking PP2 For linkage details, see Application Linking for Visual Studio 2019 on Windows.

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