Did You Know? »

The most common errors a SAS programmer makes are:

  • Omiting the semicolon (;).

e.g. proc print data=demog

Error Log message=syntax error, expecting one of the following…

  • Misspelling a word

e.g. data demog; set demog;… proc print data=demo;

Error Log message=File work.demo.data does not exist

  • Omitting the RUN statement (run;)

e.g. proc print data=demo;

Error Log message=no output appears in the output window until the next proc step is submitted.

And my favorite error..

  • Omitting required quotation marks (”)

e.g. title ‘EDC Status Report ;

Error Log message=the TITLE statement is ambiguous due to invalid options or unquoted text.

Remember, practice makes perfect!

Advertisements