Correcting Errors

Overview

To modify programs that contain errors, you can edit them in the code editing window. 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;
If you use the Program Editor window, 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 issuing the RECALL command or by selecting RunRecall Last Submit.
In the program below, the missing t has been inserted into the PRINT keyword ...

Get SAS Certification Prep Guide: Base Programming for SAS 9, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.