StringDecode

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
Raftsman
Premium Member
Premium Member
Posts: 335
Joined: Thu May 26, 2005 8:56 am
Location: Ottawa, Canada

StringDecode

Post by Raftsman »

How can I use this routine in my parallel job?
Jim Stewart
Raftsman
Premium Member
Premium Member
Posts: 335
Joined: Thu May 26, 2005 8:56 am
Location: Ottawa, Canada

Post by Raftsman »

More information...The reason I ask is; in place of using a fileset, I would like to convert the following. Code 1 = 'APR', 2='MAY', 3='JUN', 4='JUL' etc. What is the recomended way to implement this. I wanted to create a routine and call it but I am not a C++ programmer and I am not sure if there another way.

Thanks,
Jim Stewart
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Explore the Modify stage, which has lookup_string_from_int16() function.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
JoshGeorge
Participant
Posts: 612
Joined: Thu May 03, 2007 4:59 am
Location: Melbourne

Post by JoshGeorge »

Code: Select all


OutputCol = lookup_string_from_int16[{default_string ='UNKNOWN'} ( 'APR'=1; 'MAY'=2; 'JUN'=3; 'JUL'=4;) ] (InputCol)

Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
Post Reply