I'd echo what Alan said. It sounds more like you're having trouble
finding out what the command line to SAS should look like, rather than
invoking it with Python.
(I'm going to quote some of your message out-of-order to better facilitate
my approach to this. I will, I trust, not misrepresent
> os.execl('C:\Program Files\SAS Institute\SAS\V8\SAS.exe')
You might find that os.system() is all you need here,
but if execl works don't worry too much.
> However, the program in question is c:\work\run_ratios.sas, with 2
> parameters: incov, and outcov. This program was initially invoked
from
Here is the code I am using to invoke SAS:
import os
import sys
shell = os.environ.get('COMSPEC')
if shell is None: shell = os.environ.get('SHELL')
if shell is None: shell = 'an unknown command processor'
print 'Running under', shell
os.exe
Alan Gauld [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 08, 2005 1:57 PM
> To: Williams, Thomas; tutor@python.org
> Subject: Re: [Tutor] executing SAS and passing parameters
>
> > I am trying to use python to run a SAS program by passing the needed
> > parameter
again,
Tom
-Original Message-
From: Alan Gauld [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 08, 2005 1:57 PM
To: Williams, Thomas; tutor@python.org
Subject: Re: [Tutor] executing SAS and passing parameters
> I am trying to use python to run a SAS program by passing th
> I am trying to use python to run a SAS program by passing the needed
> parameters. I am able to start SAS, but unable to start the correct
SAS
> program with its parameters.
Not being familiar with SAS or its parameters we'll need more clues...
> Any assistance you could provide will be apprec
Greetings,
I am
trying to use python to run a SAS program by passing the needed
parameters. I am able to start SAS, but unable to start the correct SAS
program with its parameters.
Any
assistance you could provide will be appreciated.
Tom Williams
DSHS - Research and Data Analy