String Decode function issue

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
rxs0005
Participant
Posts: 18
Joined: Fri Oct 07, 2005 4:29 am

String Decode function issue

Post by rxs0005 »

hi all

i am trying to use sting decode i have the 3 versions it still does not change it

on DB the input is VARCHAR2(10) i.e data type of PROPERTY_TYPE

StringDecode(tpo_loan_orig_out.PROPERTY_TYPE,'01=Condo under five stories|1=Condo under five stories')

StringDecode(tpo_loan_orig_out.PROPERTY_TYPE,'"01"=Condo under five stories|"1"=Condo under five stories')

I also tried this to trim it still does not work can some one advice

StringDecode(trim(tpo_loan_orig_out.PROPERTY_TYPE,"D"),'01=Condo under five stories|1=Condo under five stories')

StringDecode(trim(tpo_loan_orig_out.PROPERTY_TYPE),'01=Condo under five stories|1=Condo under five stories')

thanks

rxs0005
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
From memory only I recall last time I checked this funtion/routine was not exactly equivalent to lets us say the Oracle Decode logic.
You can build your own routine cutom made to your needs.

IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
Post Reply