Page 1 of 1

Replace wrong text with correct text

Posted: February 27th, 2013, 9:51 am
by khurshid.arshad
Dear Gregory;

Thankssssssssss.

I have records in thousands and want to do corrections in spelling in few variables. Example.


I want to Replace Islamabd with Islamabad in data file.

Regards.

arshad

Re: Replace wrong text with correct text

Posted: February 27th, 2013, 1:35 pm
by Gregory Martin
Perhaps you can create a dictionary of words that you want to modify and then use the loadcase function to change these words. See the attached program.
PROC WORD

    
if loadcase(WORDS_DICT,WORD) then
        WORD = GOOD_WORD;
    
endif;

Re: Replace wrong text with correct text

Posted: February 28th, 2013, 12:33 am
by khurshid.arshad
Thanks.
a.