LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 2001, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: Luciano <lucianokalatalo@BOL.COM.BR>
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


Back to: Top of message | Previous page | Main SAS-L page