Equivalent function for DIGITS in Parallel

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
kirannumb
Participant
Posts: 51
Joined: Fri Jun 19, 2009 2:23 pm

Equivalent function for DIGITS in Parallel

Post by kirannumb »

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
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

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 »

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
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

Yes
You are the creator of your destiny - Swami Vivekananda
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

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. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply