<?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 Re: Using SAS Autos in Advanced Programming exam. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-Autos-in-Advanced-Programming-exam/m-p/900680#M355949</link>
    <description>&lt;P&gt;I'm not familiar with the SAS Exam environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But there is no relationship between using the OPTIONS statement to update the SAS autocall library search path, and using a LIBNAME statement.&amp;nbsp; I would work on debugging this problem further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One possibility is if you accidentally call %PROPCASE once before you have updated the autocall search path, and then you update the search path, and then try again to call %PROPCASE, it will fail.&amp;nbsp; Because by default SAS will only search the autocall library for the definition of %PROPCASE once per session.&amp;nbsp; To change that behavior, you can set system option MRECALL.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Oct 2023 13:57:35 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2023-10-30T13:57:35Z</dc:date>
    <item>
      <title>Using SAS Autos in Advanced Programming exam.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-Autos-in-Advanced-Programming-exam/m-p/900672#M355946</link>
      <description>&lt;P&gt;While practicing on SAS academics I daily ran the below code:&lt;/P&gt;
&lt;P&gt;%let path=~/EMC1V2_Macro;&lt;/P&gt;
&lt;P&gt;libname mc1 "&amp;amp;path/data";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then created following macro and saved in the AUTOCALL library to use this macro again.&lt;/P&gt;
&lt;P&gt;%macro propcase(text); &lt;BR /&gt;%sysfunc(propcase(&amp;amp;text)) &lt;BR /&gt;%mend propcase;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next time when I login into SAS, and run the LIBNAME statement &lt;U&gt;with below code&lt;/U&gt; it runs smoothly. Calling the macro PROPCASE works here.&lt;/P&gt;
&lt;P&gt;options sasautos=("/home/u62036390/EMC1V2_Macro/autocall",sasautos);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other situation when I login into SAS, I just need my libraries so I run the LIBNAME statement without OPTIONS SASAUTOS. But after a while I run this&amp;nbsp;OPTIONS SASAUTOS and then if I call the macro it doesn't resolve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To me this appears as if the OPTIONS SASAUTOS is working only when I run with the LIBNAME statement. But in Advanced programming performance based exam, we don't need to define libraires. This is automatically done when we start the exam.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suppose in the exam, I want to built my AUTOCALL library so I can use the macros saved in the exam. But here&amp;nbsp; as the libraries are not needed to be defined and as per my understanding if the OPTIONS SASAUTOS is working only with the LIBNAME statement it will give me a error that the macro was not found. Please correct if I misunderstood the concept and also guide how this will work in the exam specially.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 13:28:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SAS-Autos-in-Advanced-Programming-exam/m-p/900672#M355946</guid>
      <dc:creator>POOJA_J</dc:creator>
      <dc:date>2023-10-30T13:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS Autos in Advanced Programming exam.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-Autos-in-Advanced-Programming-exam/m-p/900680#M355949</link>
      <description>&lt;P&gt;I'm not familiar with the SAS Exam environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But there is no relationship between using the OPTIONS statement to update the SAS autocall library search path, and using a LIBNAME statement.&amp;nbsp; I would work on debugging this problem further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One possibility is if you accidentally call %PROPCASE once before you have updated the autocall search path, and then you update the search path, and then try again to call %PROPCASE, it will fail.&amp;nbsp; Because by default SAS will only search the autocall library for the definition of %PROPCASE once per session.&amp;nbsp; To change that behavior, you can set system option MRECALL.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 13:57:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SAS-Autos-in-Advanced-Programming-exam/m-p/900680#M355949</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-10-30T13:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS Autos in Advanced Programming exam.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-Autos-in-Advanced-Programming-exam/m-p/900681#M355950</link>
      <description>&lt;P&gt;Whenever (that's 100% of the time, NO EXCEPTIONS), when you get an error in the log, show us the ENTIRE log. We need to see the ENTIRE log (down to the errors), not just a portion of the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please copy the log as text and paste it into the window the appears when you click on the &amp;lt;/&amp;gt; icon, &lt;STRONG&gt;PLEASE&amp;nbsp;DO NOT SKIP THIS STEP.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaigeMiller_0-1663012019648.png" style="width: 859px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75161i0E71B1489A6C9839/image-size/large?v=v2&amp;amp;px=999" role="button" title="PaigeMiller_0-1663012019648.png" alt="PaigeMiller_0-1663012019648.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 14:12:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SAS-Autos-in-Advanced-Programming-exam/m-p/900681#M355950</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-10-30T14:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS Autos in Advanced Programming exam.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-Autos-in-Advanced-Programming-exam/m-p/900682#M355951</link>
      <description>Got it. I created the %propcase macro and to check it doesn't have any errors I called it. Then saved in the AUTOCALL library and then used the OPTIONS SASAUTOS.  So when I'm trying to call it again it gives error.</description>
      <pubDate>Mon, 30 Oct 2023 14:11:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SAS-Autos-in-Advanced-Programming-exam/m-p/900682#M355951</guid>
      <dc:creator>POOJA_J</dc:creator>
      <dc:date>2023-10-30T14:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS Autos in Advanced Programming exam.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-Autos-in-Advanced-Programming-exam/m-p/900703#M355964</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually this:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437294"&gt;@POOJA_J&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Got it. I created the %propcase macro and to check it doesn't have any errors I called it. Then saved in the AUTOCALL library and then used the OPTIONS SASAUTOS. So when I'm trying to call it again it gives error.&lt;/BLOCKQUOTE&gt;
&lt;P class="1698678036909"&gt;Should not give an error.&amp;nbsp; If you manually compile the %propcase macro and successfully call it, then add it to the autocall library, the next time you call the %propocase macro in the same session it should still work.&amp;nbsp; Because the macro has already been compiled, it will not actually read from the autocall library.&lt;/P&gt;
&lt;P class="1698678036909"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="1698678036909"&gt;The situation I was describing was slightly different.&amp;nbsp; Suppose you start a SAS session and call %propcase and the macro call fails, because it has not been compiled and does not exist in an autocall library. Then you update the SASAUTOS option.&amp;nbsp; Then you try to call %propcase again.&amp;nbsp; In that case the call to %propcase will still fail, even if propcase.sas is an autocall library.&amp;nbsp; Basically SAS remembers that it has already looked in the autocall library once for the definition of propcase, so by default it will not look a second time.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 15:05:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SAS-Autos-in-Advanced-Programming-exam/m-p/900703#M355964</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-10-30T15:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS Autos in Advanced Programming exam.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-Autos-in-Advanced-Programming-exam/m-p/900802#M355997</link>
      <description>Got it. Thanks for this detailed explanation. I tried the whole thing again as per your explanation and now it's working. Thanks a ton.</description>
      <pubDate>Mon, 30 Oct 2023 20:28:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SAS-Autos-in-Advanced-Programming-exam/m-p/900802#M355997</guid>
      <dc:creator>POOJA_J</dc:creator>
      <dc:date>2023-10-30T20:28:33Z</dc:date>
    </item>
  </channel>
</rss>

