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
kirannumb
Participant
Posts: 51 Joined: Fri Jun 19, 2009 2:23 pm
Post
by kirannumb » Fri Jul 16, 2010 10:37 am
Hi All,
I am trying to find equivalent function for DIGITS function in Parallel jobs. I have the following in the Server job:
link.Column_NUMBER : DIGITS(link.REFERENCE_NUMBER)
Can anyone please post the equivalent function.
Thanks
Kiran
anbu
Premium Member
Posts: 596 Joined: Sat Feb 18, 2006 2:25 am
Location: india
Post
by anbu » Fri Jul 16, 2010 10:49 am
Code: Select all
Convert(Convert('0123456789','',REFERENCE_NUMBER),'',REFERENCE_NUMBER)
You are the creator of your destiny - Swami Vivekananda
kirannumb
Participant
Posts: 51 Joined: Fri Jun 19, 2009 2:23 pm
Post
by kirannumb » Fri Jul 16, 2010 12:05 pm
anbu wrote: Code: Select all
Convert(Convert('0123456789','',REFERENCE_NUMBER),'',REFERENCE_NUMBER)
Thanks for the reply. In the above code '0123456789' represents DIGITS and your are suggesting to replace DIGITS(DSLink8.REFERENCE_NUMBER) wit the above code ?
Kiran
anbu
Premium Member
Posts: 596 Joined: Sat Feb 18, 2006 2:25 am
Location: india
Post
by anbu » Fri Jul 16, 2010 12:14 pm
Yes
You are the creator of your destiny - Swami Vivekananda
chulett
Charter Member
Posts: 43085 Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO
Post
by chulett » Fri Jul 16, 2010 9:38 pm
Plot out what those in-lined Converts do, first the inner one and then the outer. Quite clever, actually, made me smile the first time I saw it here.
-craig
"You can never have too many knives" -- Logan Nine Fingers