SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Editing and Debugging SAS Programs
Editing SAS Programs


Recalling SAS Programs

In the previous practice, SAS statements disappeared from the Program Editor window when you submitted them. However, you can recall a program to the Program Editor by selecting

Run ---> Recall Last Submit

The area where submitted SAS code is stored is known as the recall buffer. Program statements accumulate in the recall buffer each time you submit a program. The recall buffer is last-in/first-out (the most recently submitted statements are recalled first). For example, if you submit two programs, you will need to select

Run ---> Recall Last Submit

two times to recall the first program to the Program Editor window. You can recall statements any time during your SAS session.


Recalled SAS Programs


Clearing Text in Enhanced Editor Windows (Windows Operating Environment)

In the Program Editor window, your code disappears after it is submitted. By default, code in the Enhanced Editor does not disappear when you submit it. You can set your programs to disappear in the Enhanced Editor using the Editor Options window. To open the Editor Options window,

  1. Select Tools --> Options --> Enhanced Editor from an Enhanced Editor window.
  2. Select the General tab on the Editor Options window.
  3. Check Clear text on submit.
  4. Click OK.

When the Clear text on submit option is selected, you can recall SAS programs just as you would in the Program Editor window, by selecting

Run --> Recall Last Submit.

For more information on the Enhanced Editor, select Help Using This Window from an Enhanced Editor window.

 


back||next


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

Terms of Use & Legal Information | Privacy Statement