When I run a macro in the Teradata SQL Assistant in Export Result mode, I get a file content that looks like this:123____2344__23455____
123____2344__23455____
Etc.
The point here is that each line must have the same length, and the “_” represent spaces.
But if I run the same macro from BTEQ:.LOGON xxx
.Format OFF
.SET WIDTH 500
.EXPORT report file = WEEK39.txt
EXEC POSCN_A_P.Ma_Macro(24);
.Export Reset
.LOGOFF
.EXIT
I get the following result:123____2344__23455
123____2344__23455
Etc.
Where the trailing blanks has been removed. How do I prevent the trailing blanks from being removed when running the macro in a BTEQ?
Peter Schwennesen
Tags:
Forums: