Display Problems

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
DS_FocusGroup
Premium Member
Premium Member
Posts: 197
Joined: Sun Jul 15, 2007 11:45 pm
Location: Prague

Display Problems

Post by DS_FocusGroup »

I am fetching rows from the database and writing it to a dataset with copy stage in the middle. the SQL select gives the following result

Code: Select all

 Column1                                   Column2
 997000045147278	                223319.43

in the dataset when i view the data its shown like:

Code: Select all

 Column1                                   Column2
 997000045147278	                0000000223319.43
zeros are being added as a prefix to Column2 which is Decimal 15,2 i dont think its the problem with the APT_PAD_CHAR variable. Any other things i need to have a look into ?

Thanks.
karthik_j013
Participant
Posts: 18
Joined: Mon Mar 26, 2007 1:02 am

Re: Display Problems

Post by karthik_j013 »

DS_FocusGroup wrote:I am fetching rows from the database and writing it to a dataset with copy stage in the middle. the SQL select gives the following result

Code: Select all

 Column1                                   Column2
 997000045147278	                223319.43

in the dataset when i view the data its shown like:

Code: Select all

 Column1                                   Column2
 997000045147278	                0000000223319.43
zeros are being added as a prefix to Column2 which is Decimal 15,2 i dont think its the problem with the APT_PAD_CHAR variable. Any other things i need to have a look into ?

Thanks.

Which version of Data Stage are you using. That is DataStage PX bug in the version 7.5 series.
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

That's not a bug. Data in a dataset is stored in an internal format. The PX engine displays decimal data to the outside world (e.g. view data) in the format that you see. If you want specially formatted output, you need to convert from decimal to string... or pass it to a reporting tool for a formatted display.

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

Post by chulett »

In other words, it's neither a bug nor a problem, just an artifact of how View Data presents the data to you.
-craig

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