15.10 - Byte String Assignment - 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

Byte data is assigned to a host variable byte by byte. PP2 performs no conversion, leaving the application responsible for processing the value.

 

Value

Action Taken by Application on Data

Shorter than the receiving field

Filled with nulls

Longer than the receiving field

1 Truncated.

2 SQLWARN1 in the SQLCA area is set to W

3 The indicator variable, if present, is set to the length of the returned data.

The same length

Moved with no exception conditions