[ESS] Getting SAS to work

Cameron Hooper chooper at umich.edu
Fri Jul 29 18:01:12 CEST 2005


Dear List

I am running GNU Emacs 21.3.1 on SunOS 5.7. I am having a problem 
running an interactive SAS process.

After making ess-sas-sh-command executable as described in the 
manual[1] I was able to evoke M-x SAS and get the expected four 
buffers. In the test.sas buffer I put the following test code:

data test;
     do i = 1 to 10;
	    output;
     end;
run;

proc print;
run;

I selected all the above and entered C-c C-r. The test.sas buffer was 
replaced with a *shell* buffer which contained:

cd "/home/usr13/chooper"
nohup nice +6 sas ess-temp -rsasuser &
[northrup][~]> [northrup][~] > [1] 17444
[northrup][~]>

The log and lst buffers contained no output.

I'm not sure what I going wrong. Looking at section 10.7 of the manual, 
I wonder if it is because  the display manager is being started 
(although no X messages or windows are appearing). Normally, I start 
sas from  the command line then the display manager will start (if X is 
running on my local powerbook, otherwise the command results in an 
error) unless I add the switch -nodms. The command

find / -name sas -print

returns

/usr/local/bin/sas

which is a binary not a shell script.

M-: (executable-find "sas") returns /usr/local/bin/sas

Do I need to change the ess-sas-sh-command to:

/usr/local/bin/sas -nodms $@ </dev/tty 1>$stdout 2>$stderr

If so, how?

Thanks,

Cameron


[1] The manual should perhaps point out that the full path name to 
ess-sas-sh-command needs to be given. Newbies such as myself stumble 
over such things.




More information about the ESS-help mailing list