Issue with loading 0x0 instead of null in datastage 8.7

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
srini27
Participant
Posts: 7
Joined: Thu May 09, 2013 10:22 am

Issue with loading 0x0 instead of null in datastage 8.7

Post by srini27 »

Hi,

In Datastage 8.7 , we are seeing 0x0 getting inserted in target database (Oracle) instead of null . we should have null value inserted if incoming data for a particular filed is empty.

please advise me on this issue.

Thanks
Srinivas
Srinivas
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Are you seeing that only for CHAR fields?
-craig

"You can never have too many knives" -- Logan Nine Fingers
srini27
Participant
Posts: 7
Joined: Thu May 09, 2013 10:22 am

Post by srini27 »

Yes...The issue is only for CHAR fields.
Srinivas
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

And what is your APT_STRING_PADCHAR defined as? (and what was it in your previous version)?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not sure if there's a previous version involved but the default padding character is "0x0" and you'd need to change that to "0x20" (via the APT variable that Arnd noted) so that it pads with spaces.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply