REPLACE on four quotes

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
times29
Premium Member
Premium Member
Posts: 202
Joined: Mon Sep 22, 2008 3:47 pm

REPLACE on four quotes

Post by times29 »

Hi,
I have data like this 'F1', 'F34','JACK','NULL', 'ROB'
i want to do transformation only 4 letter string so in target it should look like 'F1', 'F34','JACK','NULL, 'ROB'

how can i do it

Thanks
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Re: REPLACE on four quotes

Post by ArndW »

Could it be that some spaces have been removed from your post? Do you want to blank-pad your strings to 4 characters?

Code: Select all

OutCol = Left(In.Col:'    ',4)
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sorry but this doesn't make much sense. Does that example go into four fields or one field? Did you really mean to only remove one of the quotes around the word NULL?

Please try again to explain your requirement.
-craig

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