|Date: ||Tue, 8 Jul 2008 21:28:31 -0700|
|Reply-To: ||KL <Kev.L.Scott@GMAIL.COM>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||KL <Kev.L.Scott@GMAIL.COM>|
|Subject: ||Re: Calling LISP program from SAS|
|Content-Type: ||text/plain; charset=ISO-8859-1|
On Jul 7, 3:43 pm, Francogrex <fra...@grex.org> wrote:
> Hi, I'm new to SAS. I have written some programs in "common lisp" and
> I was wondering if there is any way to integrate a LISP program into
> SAS, or to call the LISP program in SAS? That's because my collegues
> use SAS only (regulatory) and would like very much to be able to run
> my LISP programs in it. If possible this would be a great solution
> because instead of rewriting the programs in SAS (they are many, and
> it's not very straightforward to "translate" them), he just can
> integrate them as they are. Thanks.
Yes you can execute commands in the OS shell using a variety of
techniques in SAS. My order of preference is:
1. %xlog(your-lisp-command) or %xlst(your-lisp-command) macros. These
pipe the command to the shell.
2. within a data _null_ step using the rc=system(your-lisp-command)
3. using rhe x "your-lisp-command" statement.
Please refer to the Base SAS documentation for your version and OS for