Creating of Routine fr this Function nt to allow Special Chr

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
John Daniel
Participant
Posts: 42
Joined: Mon Oct 15, 2007 10:35 pm
Location: Charlotte
Contact:

Creating of Routine fr this Function nt to allow Special Chr

Post by John Daniel »

Hi,

How to create the routine for this function not to allow the special characters.

Function :

Convert(Convert('ABCDEFGHIJKLMNOPQRSTUVWXZY0123456789','',YourField),'',YourField)

What could be the Code to create the routine for this function ??

Thanks,
John
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Why a routine and not a transform ?

You can make it into routine as

Code: Select all

Ans = Convert(Convert('ABCDEFGHIJKLMNOPQRSTUVWXZY0123456789','',Arg1),'',Arg1)
Post Reply