Byte String Assignment - Teradata Preprocessor2

Teradata® Preprocessor2 for Embedded SQL Programmer Guide - 20.00

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Lake
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

Byte data is assigned to a host variable byte by byte. PP2 does not perform any conversion, leaving the application responsible for processing the value.

Value Action Taken on Data
Shorter than the receiving field X’00’ filled
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 actual length of the returned data
  4. ANSI SQLCODE =+902, SQLSTATE ‘01004’
The same length Moved with no exception conditions