Reading zoned decimals in DB2

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
venkycool
Participant
Posts: 59
Joined: Fri Feb 16, 2007 12:24 am
Location: USA

Reading zoned decimals in DB2

Post by venkycool »

Hi All,

I am trying to migrate the data from DB2 (source) and SQL (target).

In DB2, some tables are having columns with datatype as Numeric. When I try to view the data, the data represents in "?" wherever the columns has the datatype as numeric.

From the DB2 level table definitions, those numeric colums are zoned decimals. How can I make those data can be viewed in DataStage.

Thanks in advance.
Suriv
No one is perfect... that's why pencils have erasers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Are you reading sequential files or DB2 tables? I ask because DB2 does not have zoned decimal, whereas COBOL structures in sequential files do.
venkycool
Participant
Posts: 59
Joined: Fri Feb 16, 2007 12:24 am
Location: USA

Post by venkycool »

I am reading the DB2 tables, not the sequentila file.

I have looked at the DB2 tables which is AS/400, the table definition are having packed decimals and xoned decimals. But packed decimals is working fine. Problem is with zoned decimals where I cannot view the data in DataStage.
Suriv
No one is perfect... that's why pencils have erasers
i_sivapras
Participant
Posts: 1
Joined: Mon Aug 10, 2009 12:52 am
Location: hyderabad

Re: Reading zoned decimals in DB2

Post by i_sivapras »

i think the columns are having null values.can u check those columns are nullable or not
Post Reply