PX Functions

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
simonaco
Participant
Posts: 2
Joined: Tue May 24, 2005 1:09 am

PX Functions

Post by simonaco »

Hi.

If I want to put a string into decimal field. Which function (parallel jobs) is corrected to use?

For example:
The string is +000000000533719920
The decimal field has formed (18,3)
The final result must be +533719,920
:?
Thanks in advance.
blewip
Participant
Posts: 81
Joined: Wed Nov 10, 2004 10:55 am
Location: London

Post by blewip »

Well this should work

Code: Select all

StringToDecimal(DSLink2.VarCharField)/1000
simonaco
Participant
Posts: 2
Joined: Tue May 24, 2005 1:09 am

Post by simonaco »

blewip wrote:Well this should work

Code: Select all

StringToDecimal(DSLink2.VarCharField)/1000
I've tested the job with the function. The result is ok.

Thanks for the aid.
Post Reply