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.