Search found 59 matches

by venkycool
Tue Jan 10, 2012 3:52 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Performing right() fn with "+" addition
Replies: 16
Views: 6253

I don't say nothing but can this happen? Ray, we have our jobs which are 4 node configuration and jobs itself have some partition and re-partition within stages like Aggregator ( to sum calculations). When I run a sequence in DataStage through unix, I will have an ouput to verify the summation of re...
by venkycool
Tue Jan 10, 2012 2:16 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Performing right() fn with "+" addition
Replies: 16
Views: 6253

Sorry to get back late...

Actually, found a problem here..Everything works great in Dev env but The same job is not working in QA as it gives me the output with decimal with wrong data.


Any suggestions here...It is the same Oracle database for both dev and qa.

Thanks
by venkycool
Wed Jan 04, 2012 2:31 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Performing right() fn with "+" addition
Replies: 16
Views: 6253

pandeesh wrote:Please try

Code: Select all

Convert(".","",VALUE)
and let us know.
It's not workng out! I am still getting "."
by venkycool
Wed Jan 04, 2012 2:30 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Performing right() fn with "+" addition
Replies: 16
Views: 6253

pandeesh wrote:Please try

Code: Select all

Convert(".","",VALUE)
and let us know.
It's not workng out! I am still getting "."
by venkycool
Wed Jan 04, 2012 1:51 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Performing right() fn with "+" addition
Replies: 16
Views: 6253

pandeesh wrote:If it's varchar, then use Convert() for removing the '.'.
It's Char. But can try varchar. Any other suggestions?
by venkycool
Wed Jan 04, 2012 1:34 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Performing right() fn with "+" addition
Replies: 16
Views: 6253

jwiles wrote:Are you certain of the value of a_pay? What is the result of just DecimalToString(a_pay) without any of the other logic?
Yes the value is certain. I didnt try just DecimalToString. Is there any possibility with the logic I could remove the "." if it comes?
by venkycool
Tue Jan 03, 2012 2:58 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Performing right() fn with "+" addition
Replies: 16
Views: 6253

ray.wurlod wrote:What's the actual value in a_pay (or similar) for the columns that work and the columns that don't work? ...
a_pay has +000150000 and I am mapping a_pay to apay with the above said derivation

Note: a_pay is different data now since I mock up test bills. Still there should not be +.00000150000
by venkycool
Tue Jan 03, 2012 12:35 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Performing right() fn with "+" addition
Replies: 16
Views: 6253

Performing right() fn with "+" addition

I am deriving an aggregation column which is a_pay (decimal 11, 2) and writing to a transformer apay (char 12) with the below derivation. "+":Right("00000000000" : DecimalToString(NullToZero(a_pay) * 100,"suppress_zero") , 11) Somehow, I am getting "+.0000000001&qu...
by venkycool
Tue Feb 22, 2011 3:34 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DecimalToString zero pad to the left
Replies: 2
Views: 3631

Sorry for the typo

it should be "000000222" 9 bytes and no decimal in target.
by venkycool
Tue Feb 22, 2011 3:13 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DecimalToString zero pad to the left
Replies: 2
Views: 3631

DecimalToString zero pad to the left

Hello, I am trying to use DecimalToString finction because the source columns field is decimal and it is mapped to target field which is always char. Incoming data is like 0000002.22 is what the file has now...10 bytes with a decimal. I want to take the decimal out an the final should be zero pad to...
by venkycool
Mon Sep 14, 2009 10:58 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reading zoned decimals in DB2
Replies: 3
Views: 2196

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.
by venkycool
Mon Sep 14, 2009 10:48 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reading zoned decimals in DB2
Replies: 3
Views: 2196

Reading zoned decimals in DB2

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...
by venkycool
Fri Dec 12, 2008 9:23 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: sql query two dates between 90 days and 7 days
Replies: 4
Views: 2016

Perfect! Saw the difference, query is correct and I got the record count as needed. Thanks chulett!!!
by venkycool
Fri Dec 12, 2008 9:08 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: sql query two dates between 90 days and 7 days
Replies: 4
Views: 2016

Typo!! I am sorry, it is -7. So the query which am using is correct?

SELECT count(1) from table name WHERE etl_timestamp between getdate()-90 and getdate()-7
by venkycool
Fri Dec 12, 2008 8:18 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: sql query two dates between 90 days and 7 days
Replies: 4
Views: 2016

sql query two dates between 90 days and 7 days

Hi All, I am trying to take the result from DW table where I need the record count between last 90 days to last 7 days. I am trying with this query and am getting the result, but I dont know I am doing the correct one. My query is SELECT count(1) from table name WHERE etl_timestamp between getdate()...