Chapter Contents

Previous

Next
SPOOL

SPOOL



Controls whether SAS writes SAS statements to a utility data set in the WORK data library

Valid in: configuration file, SAS invocation, OPTIONS statement, Systems Options window
Category: Input control: Data processing
PROC OPTIONS GROUP= INPUTCONTROL


Syntax
Syntax Description
Examples

Syntax

SPOOL | NOSPOOL

Syntax Description

SPOOL
writes SAS 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.

NOSPOOL
does not write SAS 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 also can 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;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.