15.10 - PP2 Issues - Preprocessor2 for Embedded SQL

Teradata Preprocessor2 for Embedded SQL Programmer Guide

prodname
Preprocessor2 for Embedded SQL
vrm_release
15.10
category
Programming Reference
featnum
B035-2446-035K

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.