Removing spaces and certain characters in a string

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
skp
Premium Member
Premium Member
Posts: 135
Joined: Wed Dec 26, 2007 1:56 am
Location: India

Removing spaces and certain characters in a string

Post by skp »

Hi all,

My Input
-------
Jun Fujimoto/Singapore/IBM@IBMSG

output should be in (trim ,upper case and removal of the last characters after @) like

Output
-------

JUNFUJIMOTO/SINGAPORE/IBM

please provide the logic for this conversion.

Thanks
RPhani
Participant
Posts: 32
Joined: Sun Aug 26, 2012 7:03 am
Location: Hyd

Post by RPhani »

Hi,

Try with Trim(),Upcase() and Field() functions.

----------------------------
Phani
skp
Premium Member
Premium Member
Posts: 135
Joined: Wed Dec 26, 2007 1:56 am
Location: India

Post by skp »

please provide exact logic.
stuartjvnorton
Participant
Posts: 527
Joined: Thu Apr 19, 2007 1:25 am
Location: Melbourne

Post by stuartjvnorton »

chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Come on... how about you put a little effort into solving the problem first? Then show us what you've tried and what's not working and we'll help nail it down for you.

If the Field() suggestion is throwing you, you can use it to take the first field from your "@" delimited string. The rest should be very straight-forward.
-craig

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