Running SAS Interactively in Line Mode
On UNIX, to use SAS in line mode, type the following command:
sas -nodmsYou may type commands at the prompt. Results are written to the screen as soon as procedures execute. To exit, type:
endsas;If you forget a semicolon on a previous line, just type it on the current line. Similarly, if you have an open quotation mark and have already pressed the ENTER key, just type the closing quotation mark on the current line. The endsas command will not work if you have a missing semicolon or an open quotation mark.
Line-mode execution is useful only for quick checks that produce no more than one screen of output. For example, to find the probability of a standard-normal variable exceeding 3.25, type sas -nodms at the strauss prompt. The session (excluding the initial notes) looks like:
strauss.udel.edu% sas -nodms 1? data; p=probnorm(3.25); run; NOTE: The data set WORK.DATA1 has 1 observations and 1 variables. NOTE: DATA statement used (Total process time): real time 0.08 seconds cpu time 0.04 seconds 2? proc print; run; The SAS System 1 14:41 Monday, June 5, 2006 Obs p 1 0.99942 NOTE: There were 1 observations read from the data set WORK.DATA1. NOTE: PROCEDURE PRINT used (Total process time): real time 0.07 seconds cpu time 0.07 seconds 3? endsas; NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414 NOTE: The SAS System used: real time 12.26 seconds cpu time 0.26 seconds strauss.udel.edu%