String to Decimal Conversion

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
Rajneesh1990
Participant
Posts: 6
Joined: Fri Nov 18, 2011 3:19 am
Location: Delhi

String to Decimal Conversion

Post by Rajneesh1990 »

Hi All,

What is mean by rtype in Type Conversion Function
StringToDecimal(%string%,[%rtype%])??

suppose my input is sal=126540 and i need output like 126540.00

Can Anybody Explain with Example ???


Thanks,
Rajneesh.
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

Rounding type. It is documented here: http://publib.boulder.ibm.com/infocente ... 0%65%22%20
- james wiles


All generalizations are false, including this one - Mark Twain.
Rajneesh1990
Participant
Posts: 6
Joined: Fri Nov 18, 2011 3:19 am
Location: Delhi

Re: String to Decimal Conversion

Post by Rajneesh1990 »

Thanks jwiles,

I Practiced and found the answer of my Query .
Conversion should be Like Below :

StringToDecimal(<Input Column>,'2').

2 is the Precision Place in case of Decimal, but in String Format.

Thanks :D ,
Rajneesh.
Post Reply