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).
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
Or use DATA mode for import and export the names as CHAR(30).