PP2 Issues - Preprocessor2 for Embedded SQL

Teradata Preprocessor2 for Embedded SQL Programmer Guide

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

PP2 expects a terminating null character (‘\0’) on input and terminates the string with a ‘\0’ on output when used with a static request.

Change the type designation in the application to receive a null terminated field.

Declare a host variable as a variable character field by using the PP2 directive VARCHAR. This designation is replaced by a structure when the C code is generated.

Any terminating null is treated as part of the string, both when used as input and as output. For details, see “Varying Character Data” on page 108.