User manual

Chapter 13: ESS for SAS 74
(setq ess-sas-graph-view-suffix-regexp (concat "[.]\\([eE]?[pP][sS]\\|"
"[pP][dD][fF]\\|[gG][iI][fF]\\|[jJ][pP][eE]?[gG]\\|"
"[tT][iI][fF][fF]?\\)")) ;; default
(setq ess-sas-graph-view-viewer-default "kodakimg") ;; Windows default
(setq ess-sas-graph-view-viewer-default "sdtimage") ;; Solaris default
(setq ess-sas-graph-view-viewer-alist
’(("[eE]?[pP][sS]" . "gv") ("[pP][dD][fF]" . "gv")) ;; default w/ gv
C-F2 produces US landscape by default, however, it can produce A4 landscape (first line
for "global" key mapping, second for "local"):
(global-set-key [(control f2)] ’ess-sas-rtf-a4-landscape)
(define-key sas-mode-local-map [(control f2)] ’ess-sas-rtf-a4-landscape)
13.6 iESS[SAS]–Interactive SAS processes
Inferior ESS (iESS) is the method for interfacing with interactive statistical processes
(programs). iESS[SAS] is what is needed for interactive SAS programming. iESS[SAS]
works best with the SAS command-line option settings "-stdio -linesize 80 -noovp
-nosyntaxcheck" (the default of inferior-SAS-args).
-stdio
required to make the redirection of stdio work
-linesize 80
keeps output lines from folding on standard terminals
-noovp
prevents error messages from printing 3 times
-nosyntaxcheck
permits recovery after syntax errors
To start up iESS[SAS] mode, use:
M-x SAS
The *SAS:1.log* buffer in ESStr mode corresponds to the file foo.log in SAS batch
usage and to the SAS: LOG’ window in the SAS Display Manager. All commands submitted
to SAS, informative messages, warnings, and errors appear here.
The ‘*SAS:1.lst* buffer in ESSlst mode corresponds to the file ‘foo.lst in SAS batch
usage and to the SAS: OUTPUT window in the SAS Display Manager. All printed output
appears in this window.
The ‘*SAS:1* buffer exists solely as a communications buffer. The user should never use
this buffer directly. Files are edited in the ‘foo.sas’ buffer. The C-c C-r key in ESS[SAS] is
the functional equivalent of bringing a file into the ‘SAS: PROGRAM EDITOR’ window followed
by SUBMIT.
For example, open the file you want to work with.
C-x C-f foo.sas
foo.sas will be in ESS[SAS] mode. Edit as appropriate, and then start up SAS with
the cursor in the foo.sas buffer.