Replace wrong text with correct text

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
khurshid.arshad
Posts: 571
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: 1777
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;
Attachments
fixWords.zip
(2.97 KiB) Downloaded 363 times
khurshid.arshad
Posts: 571
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