SAS can correct your spelling!

Loading

The following SAS keywords are recognized even if you don’t spell them correctly:

DATA = dat, dta, daa, ddata, date*
RUN = ru, rn, rnu, urn, ruin, runt*
PROC = pro, prc, poc, porc, pric
QUIT = qut, qui, quti, qit, quite, quiet
SET = sett, sent*
FILE = fil, fill*
OUTPUT = outputsomething, outputnothing*
IF = fi*
THEN = the*
DO = doo*
PUT = putit, putting*
INPUT = imput
END = endit*

This behaviour can be controlled using OPTIONS AUTOCORRECT from SAS 9.3 onwards. To maintain this behaviour use OPTIONS AUTOCORRECT to show warnings in the log, but allow the program to continue, which is the default. OPTIONS NOAUTOCORRECT will show an error in the log at the first incorrect spelling, and then stop the program.

Can you add to my list?

(* Taken from the “Job Security” papers by Art Carpenter and Tony Payne.)

Published by

Philip Holland

Owner and Administrator of Holland Numerics: Blog and Forums.

One thought on “SAS can correct your spelling!”

  1. Note that, in the pharmaceutical sector, where I’m currently working, Warning messages in logs are nearly always banned, so, as OPTIONS AUTOCORRECT generates Warning messages, and everyone in the sector closely scrutinises SAS logs, this should never ever create a problem there!

This site uses Akismet to reduce spam. Learn how your comment data is processed.