Hi All,
Can please some help me , how to Convert the decimal value to binary in DS px?
Regards
Raj
How to Convert Decimal to binary
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Why?
What kind of "binary"? After all, every decimal number is already in a binary form within DataStage.
Do you need some form of "packed decimal", or perhaps binary coded decimal representation?
I guess the easiest way is to write via a Complex Flat File stage.
What kind of "binary"? After all, every decimal number is already in a binary form within DataStage.
Do you need some form of "packed decimal", or perhaps binary coded decimal representation?
I guess the easiest way is to write via a Complex Flat File stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Decimal to binay conversion
Hi Ray,
Thanks for your quick response,
Actually i am getting input value as decimal and i need to convert binary for business logic,
Eg: Input is 10
Output 1010
Is there any build in functuion?
Thanks for your quick response,
Actually i am getting input value as decimal and i need to convert binary for business logic,
Eg: Input is 10
Output 1010
Is there any build in functuion?
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 111
- Joined: Thu Jun 01, 2006 5:12 am
- Location: Detroit
Re: Decimal to binay conversion
Hi Raj,
If you can pass business logic so that I can help you out.
as per your example: INput is 10 and Output is 1010
Does it mean what ever input is there you just need to concatinate the same value again to the input value , If you can explain it clearly I can help you out.
If you can pass business logic so that I can help you out.
as per your example: INput is 10 and Output is 1010
Does it mean what ever input is there you just need to concatinate the same value again to the input value , If you can explain it clearly I can help you out.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: