SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Editing and Debugging SAS Programs
Resolving Common Problems


Invalid Option

An invalid statement option error occurs when a specified option is invalid when used with a particular statement. In the program below, the KEYLABEL option is not valid when used with the PROC PRINT statement.

     data clinic.admitfee;
        set clinic.admit;
     run;
     proc print data=clinic.admitfee keylabel;
        label actlevel='Activity Level';
     run;
When a SAS statement with an invalid option is submitted, a message appears in the Log window indicating that an option is invalid or not recognized.


SAS Log


Resolving the Problem

To correct the error, do the following:

  1. Recall the program to the Program Editor window.
  2. Remove or replace the invalid option, and check your statement syntax as needed.
  3. Resubmit the corrected program.
  4. Check the Log window again to make sure there are no other errors.

back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement