[ESS] How to submit SAS from win XEmacs-ESS on remote UNIX SAS ?

Rodney Sparapani rsparapa at mcw.edu
Fri Oct 5 15:34:10 CEST 2007


Will wrote:
> Hi,
> 
> just wanted to say that I am suffering from the same problem like Alex
> and I'd really appreciate a way to work with a remote SAS Unix Server 
> with an GNU Emacs Client (GNU Emacs 22.0.99.1 (i386-mingw-nt5.1.2600) of 
> 2007-04-24 on LENNART-69DE564 (patched)) on a local Window XP machine.
> 
> What I use in my .emacs:
> 
> ;;;;;;;;;;;;;;;;;;;;;.emacs;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> (require 'telnet)
> (setq-default telnet-program "C:\\Program Files\\SSH Communications 
> Security\\SSH Secure Shell\\ssh2.exe")
> 
> (require 'ssh)
> (setq-default ssh-program "C:\\Program Files\\SSH Communications 
> Security\\SSH Secure Shell\\ssh2.exe")
> 
> (require 'ess-site)
> 
> ;;;;;;;;;;;;;;;;;;;;;.emacs;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> 
> What I do:
> 
> 1) M-x find-file RET test.sas RET
> 2) M-x ssh RET <SERVER> RET
> => I get a new buffer *ssh-<server>*
> 3) switch-to-buffer test.sas RET
> 4) M-x ess-remote RET
> 5) "Dialect (press TAB for choices):" sas RET
> 6) switch-to-buffer test.sas RET
> 7) ess-eval-buffer RET
> => I get the message "not: Wrong type argument: stringp, nil"
> 
> It's strange that I am asked for the server name, but no user name or 
> password.
> 
> Can anybody help?
> 
> Thanks,
> 
> Will

Hi Will:

Not sure.  Have you tried batch?  For example, there is this discussion
in the manual (and there is a little more that follows it):

10.4 ESS(SAS)-Batch SAS processes
=================================

Submission of a SAS batch job is dependent on your environment.
`ess-sas-submit-method' is determined by your operating system and your
shell.  It defaults to `'sh' unless you are running Windows or Mac
Classic.  Under Windows, it will default to `'sh' if you are using a
UNIX-imitating shell; otherwise `'ms-dos' for an MS-DOS shell.  On Mac
OS X, it will default to `'sh', but under Mac Classic, it defaults to
`'apple-script'.  You will also set this to `'sh' if the SAS batch job
needs to run on a remote machine rather than your local machine.  This
works transparently if you are editing the remote file via ange-ftp/EFS
or tramp.  Note that `ess-sas-shell-buffer-remote-init' is a Local
Variable that defaults to `"ssh"' which will be used to open the buffer
on the remote host and it is assumed that no password is necessary,
i.e. you are using `ssh-agent'/`ssh-add' or the equivalent (see the
discussion about Local Variables below if you need to change the
default).

Rodney




More information about the ESS-help mailing list