Search found 84 matches

by dsdevper
Thu Aug 21, 2008 9:52 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Dividing an integer
Replies: 15
Views: 8525

sorry my bad,i have said saleem instead of waseem.

Thanks waseem once again.



Thanks.
by dsdevper
Thu Aug 21, 2008 9:48 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Dividing an integer
Replies: 15
Views: 8525

Thanks to all of you.

I have used As Saleem said

Asfloat(Asfloat(inputcoloumn)/Asfloat(10.0)) and it solved my problem...


Thanks Saleem for the solution........
by dsdevper
Thu Aug 21, 2008 8:52 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Dividing an integer
Replies: 15
Views: 8525

Hi

I have tried

Div(AsFloat(AsFloat(DSLink3.INSTR_SET_HRS)/AsFloat(10.0))) This aldo its not giving decimal output..

Any one help mee...

Thanks
by dsdevper
Wed Aug 20, 2008 11:29 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Dividing an integer
Replies: 15
Views: 8525

Ray,i am posting the generated OSH,Please have a look at it...Thanks INput field is INSTR_SET_HRS Output field for this input is CONTACT_HOURS ################################################################# #### STAGE: DB2_UDB_API_0 ## Operator dscapiop ## Operator options -stageprops PSAyyDP__T_S...
by dsdevper
Wed Aug 20, 2008 11:02 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Dividing an integer
Replies: 15
Views: 8525

Yes ,Ray .I have checked ,the Target is Decimal(4,1) and Source is Integer.

Thanks
by dsdevper
Wed Aug 20, 2008 11:01 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Dividing an integer
Replies: 15
Views: 8525

I did what you said Ray,But the result is same its not giving the decimal values.Any other possible way.

Help me..

Thanks.
by dsdevper
Wed Aug 20, 2008 10:27 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Dividing an integer
Replies: 15
Views: 8525

Thanks Ray,

Its not working..
by dsdevper
Wed Aug 20, 2008 8:03 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Dividing an integer
Replies: 15
Views: 8525

Thanks Ray,

But its not working.I have used Div(AsFloat( DSLink3.INSTR_SET_HRS), AsFloat(10)).Its still giving only integer value with out decimal values.

My sorce and target is DB2

Thanks
by dsdevper
Wed Aug 20, 2008 6:21 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Dividing an integer
Replies: 15
Views: 8525

Dividing an integer

Hi.

I have to divide an input(integer) by 10. And output is decimal(4,1).I did
Div(input coloumn,10) in Datastage 8.0 Parallel

Ex 12/10 = 1.2

But i am getting only 1 as outout.Instead of 1.2.

I have tried this Div(AsFloat(input coloumn),10) but it is also not working.

Thanks.