<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic how to delete an autocall location from SASAUTOS? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-delete-an-autocall-location-from-SASAUTOS/m-p/95217#M20046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS folks-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently, I added a directory for general-purpose macros to SASAUTOS in my autoexec file by using the append method from this helpful SAS sample.&amp;nbsp;&amp;nbsp; &lt;A href="http://support.sas.com/kb/42/360.html"&gt;http://support.sas.com/kb/42/360.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;STRONG style="color: purple; font-size: 10pt; font-family: 'Courier New';"&gt;FILENAME&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; U_MACROS &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; font-size: 10pt;"&gt;"&amp;amp;utility\utility_macros"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;STRONG style="color: purple; font-size: 10pt; font-family: 'Courier New';"&gt;options&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;STRONG&gt;append&lt;/STRONG&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: purple; font-size: 10pt; font-family: 'Courier New';"&gt;sasautos&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;=(U_MACROS);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; background: white; color: black; font-size: 10pt;"&gt;using &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;%put&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;(getoption(sasautos));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;gives me back&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;(SASAUTOS U_MACROS)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have macros that are applied in different situations - one being a series of programs that extract data from our databases in Oracle. To add that directory, I was thinking of adding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;STRONG style="color: purple; font-size: 10pt; font-family: 'Courier New';"&gt;FILENAME&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; DB_MACS &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; font-size: 10pt;"&gt;"&amp;amp;utility\database_utility_macros"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;STRONG style="color: purple; font-size: 10pt; font-family: 'Courier New';"&gt;options&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;STRONG&gt;append&lt;/STRONG&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: purple; font-size: 10pt; font-family: 'Courier New';"&gt;sasautos&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;=(DB_MACS);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: black; font-size: 10pt;"&gt;to give &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;(SASAUTOS U_MACROS DB_MACS)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the beginning of the code that runs those programs.&amp;nbsp; However, when the database series of programs is over, the DB_MACS macros no longer apply, and I would need to set SASAUTOS back to (&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;SASAUTOS U_MACROS)&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;, before going on to the rest of the program run.&amp;nbsp; I've been looking through the documentation, but can't seem to find an option to delete from SASAUTOS.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; background: white; color: black; font-size: 10pt;"&gt;Your help would be greatly appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; background: white; color: black; font-size: 10pt;"&gt;Wendy T.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jul 2013 20:29:13 GMT</pubDate>
    <dc:creator>WendyT</dc:creator>
    <dc:date>2013-07-30T20:29:13Z</dc:date>
    <item>
      <title>how to delete an autocall location from SASAUTOS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-delete-an-autocall-location-from-SASAUTOS/m-p/95217#M20046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS folks-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently, I added a directory for general-purpose macros to SASAUTOS in my autoexec file by using the append method from this helpful SAS sample.&amp;nbsp;&amp;nbsp; &lt;A href="http://support.sas.com/kb/42/360.html"&gt;http://support.sas.com/kb/42/360.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;STRONG style="color: purple; font-size: 10pt; font-family: 'Courier New';"&gt;FILENAME&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; U_MACROS &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; font-size: 10pt;"&gt;"&amp;amp;utility\utility_macros"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;STRONG style="color: purple; font-size: 10pt; font-family: 'Courier New';"&gt;options&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;STRONG&gt;append&lt;/STRONG&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: purple; font-size: 10pt; font-family: 'Courier New';"&gt;sasautos&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;=(U_MACROS);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; background: white; color: black; font-size: 10pt;"&gt;using &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;%put&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;(getoption(sasautos));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;gives me back&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;(SASAUTOS U_MACROS)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have macros that are applied in different situations - one being a series of programs that extract data from our databases in Oracle. To add that directory, I was thinking of adding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;STRONG style="color: purple; font-size: 10pt; font-family: 'Courier New';"&gt;FILENAME&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; DB_MACS &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; font-size: 10pt;"&gt;"&amp;amp;utility\database_utility_macros"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;STRONG style="color: purple; font-size: 10pt; font-family: 'Courier New';"&gt;options&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;STRONG&gt;append&lt;/STRONG&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: purple; font-size: 10pt; font-family: 'Courier New';"&gt;sasautos&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;=(DB_MACS);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: black; font-size: 10pt;"&gt;to give &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;(SASAUTOS U_MACROS DB_MACS)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the beginning of the code that runs those programs.&amp;nbsp; However, when the database series of programs is over, the DB_MACS macros no longer apply, and I would need to set SASAUTOS back to (&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;SASAUTOS U_MACROS)&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;, before going on to the rest of the program run.&amp;nbsp; I've been looking through the documentation, but can't seem to find an option to delete from SASAUTOS.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; background: white; color: black; font-size: 10pt;"&gt;Your help would be greatly appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; background: white; color: black; font-size: 10pt;"&gt;Wendy T.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 20:29:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-delete-an-autocall-location-from-SASAUTOS/m-p/95217#M20046</guid>
      <dc:creator>WendyT</dc:creator>
      <dc:date>2013-07-30T20:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete an autocall location from SASAUTOS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-delete-an-autocall-location-from-SASAUTOS/m-p/95218#M20047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest solution is to remember the setting before you changed it and then restore it when it no longer applies.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let save=%sysfunc(getoption(sasautos));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;options sasautos=&amp;amp;save ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is impossible then you can use some logic to find and remove a particular value.&amp;nbsp; But remember that the value could include actual path names in addition to filerefs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%LET REMOVE=SASAUTOS;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%put %sysfunc(getoption(sasautos));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; sasautos = getoption('sasautos');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; i = findw(sasautos,"&amp;amp;remove",'( )','mqri');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; if i then sasautos = substr(sasautos,1,i-1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; || substr(sasautos,i+length("&amp;amp;remove"))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; call execute(catx(' ','options sasautos=',sasautos,';'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%put %sysfunc(getoption(sasautos));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 21:47:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-delete-an-autocall-location-from-SASAUTOS/m-p/95218#M20047</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-07-30T21:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete an autocall location from SASAUTOS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-delete-an-autocall-location-from-SASAUTOS/m-p/95219#M20048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well one way would be: options sasautos = (SASAUTOS, UMACROS); Even if the DB_MACS no longer apply there would be no harm leaving them in the AUTOCALL definition even if you are not using them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 21:56:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-delete-an-autocall-location-from-SASAUTOS/m-p/95219#M20048</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2013-07-30T21:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete an autocall location from SASAUTOS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-delete-an-autocall-location-from-SASAUTOS/m-p/95220#M20049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom &amp;amp; SASKiwi-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for your replies!&amp;nbsp; I was thinking that I just couldn't find an option that exists.&amp;nbsp; I also thought about using FILENAME DB_MACS CLEAR;&amp;nbsp; I'll have to do some experimentation next week, as this affects my main product runs, and I will have to set up an analog for testing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SASKiwi-&amp;nbsp; Actually, I can't leave DB_MACS active, as some of the macros have the same names and functions, but use different variable names.&amp;nbsp; I know that's bad form, but I wrote the original macros for my project (in SAS datasets with 'my' variable names), then later generalized them to our Oracle databases, so they can be used for any project.&amp;nbsp; When I'm doing things in Oracle, I have to use nasty variable names like WTR_QUAL_PARAM_NM instead of ANALYTE and MTHD_DTCTN_LMT_VAL instead of MDL, and so forth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wendy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 15:25:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-delete-an-autocall-location-from-SASAUTOS/m-p/95220#M20049</guid>
      <dc:creator>WendyT</dc:creator>
      <dc:date>2013-07-31T15:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete an autocall location from SASAUTOS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-delete-an-autocall-location-from-SASAUTOS/m-p/95221#M20050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case just thought it is useful to point out that the search order for AUTOCALL macros is from left to right so if you want your DB_MACS versions to be used in preference to the UMACROS versions then you could specify it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options sasautos = (DB_MACS, UMACROS, SASAUTOS); This has the same effect as the APPEND feature.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 19:57:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-delete-an-autocall-location-from-SASAUTOS/m-p/95221#M20050</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2013-07-31T19:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete an autocall location from SASAUTOS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-delete-an-autocall-location-from-SASAUTOS/m-p/95222#M20051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The INSERT option is similar to APPEND but has the effect of giving priority to the folder of macros that you "insert" , as the folder is INSERTed at the beginning of the SASAUTOS vslue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peterC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 07:38:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-delete-an-autocall-location-from-SASAUTOS/m-p/95222#M20051</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2013-08-02T07:38:31Z</dc:date>
    </item>
  </channel>
</rss>

