ASCII Nulls in Sequential File

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
arati
Participant
Posts: 8
Joined: Mon Aug 29, 2005 4:05 am

ASCII Nulls in Sequential File

Post by arati »

Hi,

We are facing problem with ASCII Nulls in fixed-width sequential file. This fixed width sequential file is getting created in server job which has CHAR(20) column. In this column, sometimes data coming in is not exact 20.

This file further used in parallel job where we are converting it into dataset and this dataset is used to load table. Now in table ASCII nulls are getting inserted. Please tell me how to check and remove ascii nulls from sequential file.

Thanks.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

To convert to "?" in a transform stage, use "CONVERT(CHAR(000),'?',In.StringColumn)"
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Change the value of APT_STRING_PADCHAR to something other than 0x00.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
arati
Participant
Posts: 8
Joined: Mon Aug 29, 2005 4:05 am

Post by arati »

[quote="ArndW"]To convert to "?" in a transform stage, use "CONVERT(CHAR(000),'?',In.StringColumn)" ...[/quote]

Thanks a lot ArndW.
That is working fine.
Post Reply