Search found 51 matches

by imfarhan
Wed Aug 01, 2012 5:44 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to calcuate the current AGE
Replies: 3
Views: 1480

Done! Thanks for your help

Code: Select all

YearFromDate(TimestampToDate(IP_Spell_Epi_HRG_Src.BIRTH_DTTM)) 
Then on next Transformer Stage I sed like that

Code: Select all

YearFromDate(CurrentDate())  - IP_Spell_EPI_HRG_Tariff_Src.Spell_Age
Got the Age
Regards
F
by imfarhan
Wed Aug 01, 2012 4:56 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to calcuate the current AGE
Replies: 3
Views: 1480

Sorry, I should 've put the format.
The type of the field is "TIMESTAMP" AND VALUE keeps like

Code: Select all

1974-11-27 00:00:00.0
I hope it makese sense

To calcuate Age I simply thinking to do following ....CurrenDate() - DOB
Appreciate your advise
Regards
Farhan
by imfarhan
Wed Aug 01, 2012 2:56 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to calcuate the current AGE
Replies: 3
Views: 1480

How to calcuate the current AGE

I want to calcuate the current AGE. I have used the function YearFromDate(DOB) but it doesn't like that I think because the field type is timestamp, so i thought first convert into into Date so I tried like : but no success again YearFromDate(TimetFromTimestamp(.BIRTH_DTTM)) But not working there is...
by imfarhan
Fri Jul 27, 2012 8:27 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Rows Not Match (Transformer)
Replies: 4
Views: 2117

Thanks a lot first Time I have used this forum quite good

Kind Regards
Farhan
by imfarhan
Fri Jul 27, 2012 7:07 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Rows Not Match (Transformer)
Replies: 4
Views: 2117

Re: Rows Not Match (Transformer)

I've run the distinct on that column found Nulls and ' ' as shown below Thanks for your help SELECT PROVIDERS_REFERENCE_NO, LENGTH(PROVIDERS_REFERENCE_NO),COUNT(*) FROM DV_RDS.CONTRACT GROUP BY PROVIDERS_REFERENCE_NO PROVIDERS_REFERENCE_NO 2 3 ---------------------- ---- ------ BOWEL CARDDA CARDDIAG...
by imfarhan
Fri Jul 27, 2012 5:43 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Rows Not Match (Transformer)
Replies: 4
Views: 2117

Rows Not Match (Transformer)

hi , I'm quite new using Datastage, Give you background ...I'm only using DB2, Lookup and Tranformer for this job. I have number of IF THN ELSE conditions which I have used in my last stage of Transformer and all are working ok. Only two conditions are not matching against my SQL which i'm running o...