Proc Spell is a v6 procedure, no longer documented in v9.1 or v9.2, yet highly interesting and useful. It allows you to get a word count and spell check a document along with possible suggestions for incorrect words.
Example:
options caps;
filename bigmsg temp;
ods listing file=bigmsg;
filename temp temp;
data _null_;
file temp;
informat sentence $100.;
input sentence &;
put sentence;
cards;
This si tha paragraph
that i want to chack through
tha spell procedure to check
if this really werks
;
run;
proc spell in=temp nomaster;
run;
proc spell in=temp verify;
run;
ods listing close;
proc spell in=temp suggest;
run;
Output:
File: "TEMP"
Unrecognized word Freq Line(s)
THIS 2 1, 4
SI 1 1
THA 2 1, 3
PARAGRAPH 1 1
THAT 1 2
I 1 2
WANT 1 2
TO 2 2, 3
CHACK 1 2
THROUGH 1 2
SPELL 1 3
PROCEDURE 1 3
CHECK 1 3
IF 1 4
REALLY 1 4
WERKS 1 4
File: "TEMP"
Unrecognized word Freq Line(s)
SI 1 1
THA 2 1, 3
CHACK 1 2
WERKS 1 4
File: "TEMP"
Unrecognized word Freq Line(s)
SI 1 1
Suggestions: IS, I, GI, HI, PI, SO, SKI, SIC, SIN, SIP, SIR, SIT, SIX
THA 2 1, 3
Suggestions: TEA, THE, THY, THAI, THAN, THAT, THAW
CHACK 1 2
Suggestions: HACK, SHACK, WHACK, CRACK, CHECK, CHICK, CHUCK, CHALK
WERKS 1 4
Suggestions: JERKS, PERKS, WORKS, WEEKS