padstring issue while loading into Netezza Database

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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes, the name of the environment variable is APT_STRING_PADCHAR, not APT_STRING_PAD. This indicates that any Char data type will be right-padded with 0x0 characters.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mandyli
Premium Member
Premium Member
Posts: 898
Joined: Wed May 26, 2004 10:45 pm
Location: Chicago

Post by mandyli »

Thanks Ray,

it is my typo error.
Shall i need to change the APT_STRING_PADCHAR value at job1 and job 2 and job 3 level?

Thanks
Man
JPalatianos
Premium Member
Premium Member
Posts: 306
Joined: Wed Jun 21, 2006 11:41 am

Post by JPalatianos »

The default value for APT_STRING_PADCHAR is low values 0x0. If you want to cahnge this to spaces just delete the 0x0 and replace with a single space in Administrator.

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

Post by chulett »

... or something (hopefully) more obvious like '0x20'. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
mandyli
Premium Member
Premium Member
Posts: 898
Joined: Wed May 26, 2004 10:45 pm
Location: Chicago

Post by mandyli »

Thanks.

I need to use 0x20 or ' ' like this.

Thanks
Man
mandyli
Premium Member
Premium Member
Posts: 898
Joined: Wed May 26, 2004 10:45 pm
Location: Chicago

Post by mandyli »

still I am getting same space issue.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You'll need to be a wee bit more specific than "some space issue" if you need more help.
-craig

"You can never have too many knives" -- Logan Nine Fingers
mandyli
Premium Member
Premium Member
Posts: 898
Joined: Wed May 26, 2004 10:45 pm
Location: Chicago

Post by mandyli »

Hi

I have solved this issue.

I have added APT_STRING_PADCHAR value 0x20 into job level for Job 1 and Job 2 and then Job 3 I have used TRIM (column," ", "D") function in Transformer stage.

But still I am not able to understand why this is happening only 8.1 fix pack 2 version. The same job ran fine in 8.1 fix pack 0 versions.

Thanks
Man
Post Reply