Replace wrong text with correct text

Discussions about CSEntry
Post Reply
khurshid.arshad
Posts: 618
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

Replace wrong text with correct text

Post 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
Gregory Martin
Posts: 1947
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Replace wrong text with correct text

Post 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;
You do not have the required permissions to view the files attached to this post.
khurshid.arshad
Posts: 618
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

Re: Replace wrong text with correct text

Post by khurshid.arshad »

Thanks.
a.
Post Reply