datastage not padding spaces in db2 stage!!urgent!!

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
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

datastage not padding spaces in db2 stage!!urgent!!

Post by zulfi123786 »

Hi,

I have a column of length 3 of type char in a db2 table but the field contains only one aphabet. i am reading using db2 stage into a field defined as char(3) but surprisingly Datastage is not padding the spaces even if the APT_STRING_PADCHAR is set to 0x20. What is the reason behind this ? need urgent help
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

If you need urgent help sign up with your support provider for premium service and learn just how much "urgent" costs. DSXchange is an all-volunteer site, whose members post as and when they can. Specifically, we do not "do" urgent and, indeed, react negatively when such demands are made.

Further, posting the same question more than once adds to the negativity.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
stefanfrost1
Premium Member
Premium Member
Posts: 99
Joined: Mon Sep 03, 2007 7:49 am
Location: Stockholm, Sweden

Post by stefanfrost1 »

Maybe your field in the database is not just one character after all. Try a SQL on that table with HEX(colname) to see if it is already padded before datastage fetches it.
-------------------------------------
http://it.toolbox.com/blogs/bi-aj
my blog on delivering business intelligence using agile principles
miwinter
Participant
Posts: 396
Joined: Thu Jun 22, 2006 7:00 am
Location: England, UK

Post by miwinter »

You state you are reading from DB2. So what is your target?
Mark Winter
<i>Nothing appeases a troubled mind more than <b>good</b> music</i>
Post Reply