SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Editing and Debugging SAS Programs
Correcting Errors


To modify programs with errors, you usually need to recall the submitted statements from the recall buffer to the Program Editor window, where you can correct the problems. Remember that you can recall submitted statements by selecting

Run ---> Recall Last Submit

You can correct simple errors, such as the spelling error in the following program, by typing over the incorrect text, deleting text, or inserting text.

     data clinic.admitfee;
        set clinic.admit;
     run;
     proc prin data=clinic.admitfee;
        var id name actlevel fee;
     run;
In the Program Editor window below, the missing t has been inserted into the PROC PRINT statement.


Program Editor Window

Hot Tip Some problems are relatively simple to diagnose and correct. But sometimes you may not know how to correct errors right away. The help facility provides information about individual procedures as well as help specific to your operating environment. From the Help menu, select
  • SAS System Help for comprehensive help
  • Books and Training SAS OnlineDoc for reference documentation
  • SAS on the Web for links to Technical Support and Frequently Asked questions (if you have internet access).

back||next


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

Terms of Use & Legal Information | Privacy Statement