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 (November 2007, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 23 Nov 2007 04:31:43 -0800
Reply-To:     RolandRB <rolandberry@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         RolandRB <rolandberry@HOTMAIL.COM>
Organization: http://groups.google.com
Subject:      Re: Can SAS startup option set a macro variable ?
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset=ISO-8859-1

On 23 Nov, 13:12, "Richard A. DeVenezia" <rdevene...@wildblue.net> wrote: > nancynpaul-s...@yahoo.com wrote: > > Hi Richard, > > > I've only used the -sysparm option for this and then parsed the > > &sysparm macro variable for the values that need to be assigned to > > application macro variables. I'd be interested your requirements that > > make it necessary to assign values to macro variables at invocation > > time. > > In short, a systems startup sequence utilizes code that allows overrides > > %if (&iroot=) %then %let iroot = I: ; > > In other words, if a value is already assigned to a macro variable, it will > be left alone. If I can get the macro variable to take on the value I want > _prior_ to the above statement, then I will have overridden the default. > > The solution used was to create a new custom shortcut with a modified target > having > -autoexec c:\dev\v913\migrationof\foo\testingAutoexec.sas > and have testingAutoexec.sas contain > %let IROOT=c:\dev\v913\migrationof\foo; > %include "autoexec.sas"; > > Things were additionally complicated because all this has to be performed > automagically by a script that executes a migration and writes the testing > autoexec and shortcut to start the migrated system. > > -- > Richard A. DeVeneziahttp://www.devenezia.com/

Yoou can use -initstmt "your sas code in here;" on the command line or in the script and this should execute after the autoexec finishes.


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