Hi All,
I am reading data from an oracle table and writing to a fixed length file.
DRS stage --> Transformer --> Sequential file
Properties for file,
Final Delimeter = end
Record Delimeter = UNIX newline
Delimeter = none
quote = none
job is executing successfully, the issue is with data. iam getting a special character instead of space.
Thanks in advance
special characters in fixed width flat file
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Search DSXchange for APT_STRING_PADCHAR environment variable.
The character is not special, it's the value of that environment variable, by default 0x00 (the ASCII NUL byte).
The character is not special, it's the value of that environment variable, by default 0x00 (the ASCII NUL byte).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Side note - Be aware that it means you aren't padding your CHAR fields to their max length, instead DataStage is using $APT_STRING_PADCHAR to do so automatically. Changing it to a space "fixes" it in the database, but it can be dangerous if the reason the field was "short" is that it is missing some data.