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 (September 2006, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 6 Sep 2006 11:33:06 -0700
Reply-To:     "Terjeson, Mark" <Mterjeson@RUSSELL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Terjeson, Mark" <Mterjeson@RUSSELL.COM>
Subject:      Re: Need help with SASAUTOS, MAUTOSOURCE, ???
Comments: To: toby dunn <tobydunn@hotmail.com>
Content-Type: text/plain; charset="us-ascii"

Hi Toby et al,

Still have a problem... Hmmm?

I too don't recommend name collisions, but using the same name here was on purpose to test the repointing of the libraries...

The NOSASAUTOS option sounds like it would work perfectly, except for one problem. Even though v8 documentation also has NOSASAUTOS mentioned just like the v9 does, here is the log from a single v8.2 session with NOSASAUTOS. See if ya don't also scratch you head......

<beg log excerpt>

NOTE: Copyright (c) 1999-2001 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) Proprietary Software Release 8.2 (TS2M0) NOTE: This session is executing on the AIX 5.1 platform.

NOTE: This installation is running Base SAS hot fix bundle 82BX08.

NOTE: SAS initialization used: real time 2.04 seconds cpu time 0.70 seconds

1 2 3 options nosasautos; ---------- 26 ERROR 26-12: Expect an equal sign and value to follow SAS option SASAUTOS.

<end log excerpt>

SAS.com search engine does not respond to NOSASAUTOS. Therefore can't look for any hotfixes.

Any ideas?

-----Original Message----- From: toby dunn [mailto:tobydunn@hotmail.com] Sent: Wednesday, September 06, 2006 10:47 AM To: Terjeson, Mark; SAS-L@LISTSERV.UGA.EDU Subject: RE: Need help with SASAUTOS, MAUTOSOURCE, ???

Mark ,

Well aside from teh obvious name collision you have try the following:

options sasautos=('!SASROOT/sasautos' '/home/dir1/sasmacro'); %testloc(test1); options nosasautos;

options sasautos=('!SASROOT/sasautos' '/home/dir2/sasmacro'); %testloc(test2); options nosasautos;

options sasautos=('!SASROOT/sasautos' '/home/dir1/sasmacro'); %testloc(test3); options nosasautos;

options sasautos=('!SASROOT/sasautos' '/home/dir2/sasmacro'); %testloc(test4); options nosasautos;

options sasautos=('!SASROOT/sasautos' );

Toby Dunn

When everything is coming at you all at once, your in the wrong lane.

A truly happy person is someone who can smile and enjoy the scenery on a detour.

From: "Terjeson, Mark" <Mterjeson@RUSSELL.COM> Reply-To: "Terjeson, Mark" <Mterjeson@RUSSELL.COM> To: SAS-L@LISTSERV.UGA.EDU Subject: Need help with SASAUTOS, MAUTOSOURCE, ??? Date: Wed, 6 Sep 2006 10:36:46 -0700

Hi ALL,

re: Need help with SASAUTOS, MAUTOSOURCE, ???

Current result, ONLY the FIRST options SASAUTOS incurred gets used for the remainder of the SAS session.

Goal, get to where it can toggle back and forth? (possible?)

For test purposes, a macro file in each of two directories as shown below.

In directory - /home/dir1/sasmacro - a macro called testloc:

%macro testloc(theMsg); %put ++++++++++++++++++++++++++++++++++++++++++; %put This macro is from /home/dir1/sasmacro.; %put Your message is &theMsg..; %put ++++++++++++++++++++++++++++++++++++++++++; %mend;

In directory - /home/dir2/sasmacro - a macro called testloc:

%macro testloc(theMsg); %put ++++++++++++++++++++++++++++++++++++++++++; %put This macro is from /home/dir2/sasmacro.; %put Your message is &theMsg..; %put ++++++++++++++++++++++++++++++++++++++++++; %mend;

In an interactive SAS session the following program:

options sasautos=('!SASROOT/sasautos' '/home/dir1/sasmacro'); %testloc(test1);

options sasautos=('!SASROOT/sasautos' '/home/dir2/sasmacro'); %testloc(test2);

options sasautos=('!SASROOT/sasautos' '/home/dir1/sasmacro'); %testloc(test3);

options sasautos=('!SASROOT/sasautos' '/home/dir2/sasmacro'); %testloc(test4);

yields: 1 options sasautos=('!SASROOT/sasautos' '/home/dir1/sasmacro'); 2 %testloc(test1); ++++++++++++++++++++++++++++++++++++++++++ This macro is from /home/dir1/sasmacro. Your message is test1. ++++++++++++++++++++++++++++++++++++++++++ 3 4 options sasautos=('!SASROOT/sasautos' '/home/dir2/sasmacro'); 5 %testloc(test2); ++++++++++++++++++++++++++++++++++++++++++ This macro is from /home/dir1/sasmacro. Your message is test2. ++++++++++++++++++++++++++++++++++++++++++ 6 7 options sasautos=('!SASROOT/sasautos' '/home/dir1/sasmacro'); 8 %testloc(test3); ++++++++++++++++++++++++++++++++++++++++++ This macro is from /home/dir1/sasmacro. Your message is test3. ++++++++++++++++++++++++++++++++++++++++++ 9 10 options sasautos=('!SASROOT/sasautos' '/home/dir2/sasmacro'); 11 %testloc(test4); ++++++++++++++++++++++++++++++++++++++++++ This macro is from /home/dir1/sasmacro. Your message is test4. ++++++++++++++++++++++++++++++++++++++++++

In a DIFFERENT interactive SAS session the following program: (note that dir2 is first this time, instead of dir1)

options sasautos=('!SASROOT/sasautos' '/home/dir2/sasmacro'); %testloc(test1);

options sasautos=('!SASROOT/sasautos' '/home/dir1/sasmacro'); %testloc(test2);

options sasautos=('!SASROOT/sasautos' '/home/dir2/sasmacro'); %testloc(test3);

options sasautos=('!SASROOT/sasautos' '/home/dir1/sasmacro'); %testloc(test4);

yields:

1 2 3 4 options sasautos=('!SASROOT/sasautos' '/home/dir2/sasmacro'); 5 %testloc(test1); +++++++++++++++++++++++++++++++++++++++++++++++ This macro is from /home/dir2/sasmacro. Your message is test1. +++++++++++++++++++++++++++++++++++++++++++++++ 6 7 options sasautos=('!SASROOT/sasautos' '/home/dir1/sasmacro'); 8 %testloc(test2); +++++++++++++++++++++++++++++++++++++++++++++++ This macro is from /home/dir2/sasmacro. Your message is test2. +++++++++++++++++++++++++++++++++++++++++++++++ 9 10 options sasautos=('!SASROOT/sasautos' '/home/dir2/sasmacro'); 11 %testloc(test3); +++++++++++++++++++++++++++++++++++++++++++++++ This macro is from /home/dir2/sasmacro. Your message is test3. +++++++++++++++++++++++++++++++++++++++++++++++ 12 13 options sasautos=('!SASROOT/sasautos' '/home/dir1/sasmacro'); 14 %testloc(test4); +++++++++++++++++++++++++++++++++++++++++++++++ This macro is from /home/dir2/sasmacro. Your message is test4. +++++++++++++++++++++++++++++++++++++++++++++++

The pattern thus far is that whatever path is found on the very first occurance of OPTIONS SASAUTOS= is permanent for the remainder of the SAS session.

Adding all combinations of MAUTOSOURCE and MRECALL get the same results.

Is there a way to toggle back and forth between autocall libraries within the same SAS session?

Currently using v8.2 today. Checking SAS doc states that: "...after the session starts, any new directories you specify override any current autocall libraries..."

Any help would be appreciated, Mark


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