Hi,
I have job like
CFF ==> Transformer ==> Oracle Enterprise Stage
One Source column is coming as CHAR 2 with two spaces as value and i am loding the same to oracle using load option.
The oracle is trimming the spaces and loading as null value..
then i added a environmental variable APT_ORACLE_PRESERVE_BLANKS to the job and set it as TRUE, still null is loading to the target table
I am sure, the value coming from source is two spaces, becz when i have used as
If COLUMN = ' ' Then 'AA' ELSE COLUMN, it is loading as AA wherever it is spaces, but when i am passing as it is, NULLvalue loading to the target even though the variable APT_ORACLE_PRESERVE_BLANKS set as true
Kindly suggest me, what might be the problem
Thanks in advance
oracle trimming the spaces
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Write the data to a sequential file. If the spaces exist there, then the problem is an Oracle one. If they do not, then the problem is within your DataStage job design. We need to know which it is before suggesting any remedy.
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.