Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Need help getting rid of parcel length error in BTEQ script - response (2) by dnoeth

$
0
0

The default PACK factor in BTEQ is always 1, so changing it will not fix the problem.
REPORT format expects only fixed length CHARs, when you define a VARCHAR the first two chars are treated as the binary length of that VARCHAR. 
When you change to a CHAR it fails because a BTEQ EXPORT never writes trailing blanks in REPORT mode.
There are two possible solutions:
Change your import to VARTEXT

.import VARTEXT file=c:\bteq\dbnames.txt;

Or use DATA mode for import and export the names as CHAR(30).


Viewing all articles
Browse latest Browse all 14773

Trending Articles