Date: Mon, 9 Apr 2001 15:49:17 -0700
Reply-To: Cassell.David@EPAMAIL.EPA.GOV
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "David L. Cassell" <Cassell.David@EPAMAIL.EPA.GOV>
Subject: Re: SAS Macro and Script UNIX
Content-type: text/plain; charset=us-ascii
Luciano wrote:
> I would like tho know, the sintax to declare macro parameters under unix
script.
> To start and run some program SAS, the sintax is:
> sas nameprog.sas
>
> But, when nemprog.sas got a macro inside, how i can declare the macro
value
> under unix shell ?
I'm not quite sure what you want. The problem is not your English, but the
fact that you were not more specific. You see, there are a variaety of
ways
to pass information into your SAS program.
You can grab environment variables using %sysget
You can get SAS system and reporting information using getoption()
You can pass parameters to the SAS program using the -sysparm option
You can use the -stdio option to pass SAS statements provided on standard
input
You can use the -initstmt option to feed in a string of initial statements
to
use as the starting lines of your program [after autoexec.sas
processing]
Look these up and pick out whichever seems to fit your requirements the
best.
David
--
David Cassell, OAO Corp. Cassell.David@epa.gov
Senior computing specialist
mathematical statistician