| SAS System Options |
| Valid in: | configuration file, SAS invocation, OPTIONS statement, SAS System Options window |
| Category: | Input control: Data Processing |
| PROC OPTIONS GROUP= | INPUTCONTROL |
| Syntax | |
| Syntax Description | |
| Examples |
Syntax |
| SPOOL | NOSPOOL |
specifies that SAS write statements to a utility data set in the WORK data library for later use by a %INCLUDE or %LIST statement, or by the RECALL command, within a windowing environment.
specifies that SAS does not write statements to a utility data set. Specifying NOSPOOL accelerates execution time, but you cannot use the %INCLUDE and %LIST statements to resubmit SAS statements that were executed earlier in the session.
| Examples |
Specifying SPOOL is especially helpful in interactive line mode because you can resubmit a line or lines of code by referring to the line numbers. Here is an example of code including line numbers:
00001 data test; 00002 input w x y z; 00003 datalines; 00004 411.365 101.945 323.782 512.398 00005 ;
If SPOOL is in effect, you can resubmit line number 1 by submitting this statement:
%inc 1;
You can also resubmit a range of lines by placing a colon (:) or dash (-) between the line numbers. For example, these statements resubmit lines 1 through 3 and 4 through 5 of the above example:
%inc 1:3; %inc 4-5;
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.