<?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: SAS Macro Language 1: Essentials (UPDATED) in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648279#M22206</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/314530"&gt;@BiFrost&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems that there is a missing comma in the following statement :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options sasautos=("&amp;amp;path/autocall" sasautos);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It should be:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options sasauto=("&amp;amp;path/autocall",sasautos);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;-&amp;gt; If you have defined a folder named "AUTOCALL" and specified the value of the macrovariable PATH in a %LET statement, SAS will normally be able to find the&amp;nbsp;varexist.sas program in this location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
    <pubDate>Sat, 16 May 2020 14:02:47 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2020-05-16T14:02:47Z</dc:date>
    <item>
      <title>SAS Macro Language 1: Essentials (UPDATED)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648276#M22205</link>
      <description>&lt;P&gt;The demo I watched at the end of this course builds out a Macro to extract distinct values from columns and separate them into different tables. It allows for missing, number and character values in terms of table names. However, I keep receiving the same error message when testing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Required operator nor found in expression %varexist (&amp;amp;tab,&amp;amp;col)=0. I have check this piece of code back to the demo and it is verbatim. Where am I going wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;FONT&gt;options mcompilenote=all;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;%macro splittable (tab,col);&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;options sasautos=("&amp;amp;path/autocall" sasautos);&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;/* Ensure parameter values are uppercase */&lt;BR /&gt;%let tab=%upcase(&amp;amp;tab);&lt;BR /&gt;%let col=%upcase(&amp;amp;col);&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;/* If only a table name is provided, add prefix WORK. */&lt;BR /&gt;%if %scan(&amp;amp;tab,2)=%then %do;&lt;BR /&gt;%let tab=WORK.&amp;amp;tab;&lt;BR /&gt;%end;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;/* Check if the table exists */&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;%if %sysfunc(exist(&amp;amp;tab))=0 %then %do;&lt;BR /&gt;%put ERROR: &amp;amp;tab does not exist.;&lt;BR /&gt;%put ERROR: Macro will stop executing.;&lt;BR /&gt;%return;&lt;BR /&gt;%end;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;/* Check if the column exists in the selected table */&lt;BR /&gt;%else %if %varexist(&amp;amp;tab,&amp;amp;col)=0 %then %do;&lt;BR /&gt;proc sql noprint;&lt;BR /&gt;select Name&lt;BR /&gt;into :varlist separated by ", "&lt;BR /&gt;from dictionary.columns&lt;BR /&gt;where libname="%scan(&amp;amp;tab,1)" and&lt;BR /&gt;memname="%scan(&amp;amp;tab,2)";&lt;BR /&gt;quit;&lt;BR /&gt;%put ERROR: Column &amp;amp;col does not exist in &amp;amp;tab..;&lt;BR /&gt;%put ERROR- Columns in &amp;amp;tab include &amp;amp;varlist..;&lt;BR /&gt;%put ERROR- Macro will stop executing.;&lt;BR /&gt;%return;&lt;BR /&gt;%end;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;/* Create macro variable if COL is numeric */&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;%else %if %vartype(&amp;amp;tab,&amp;amp;col)=N %then %do;&lt;BR /&gt;proc sql; no print;&lt;BR /&gt;select distinct &amp;amp;col, cats("&amp;amp;col._",&amp;amp;col)&lt;BR /&gt;into:val1-, :table1-&lt;BR /&gt;from &amp;amp;tab&lt;BR /&gt;where &amp;amp;col is not missing;&lt;BR /&gt;quit;&lt;BR /&gt;%end;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;/* Create macro variables if COL is character */&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;%else %if %vartype(&amp;amp;tab,&amp;amp;col)=C %then %do;&lt;BR /&gt;proc sql noprint;&lt;BR /&gt;select distinct &amp;amp;col format= $quote34.,&lt;BR /&gt;compress(&amp;amp;col,, 'nk')&lt;BR /&gt;into:val1-, :table1-&lt;BR /&gt;from &amp;amp;tab&lt;BR /&gt;where &amp;amp;col is not missing;&lt;BR /&gt;quit;&lt;BR /&gt;%end;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;/* Build DATA step */&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;data&lt;BR /&gt;%do i=1 %to &amp;amp;sqlobs;&lt;BR /&gt;&amp;amp;&amp;amp;table&amp;amp;i&lt;BR /&gt;%end;;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;set &amp;amp;tab;&lt;BR /&gt;select(&amp;amp;col);&lt;BR /&gt;%do i=1 %to &amp;amp;sqlobs;&lt;BR /&gt;when (&amp;amp;&amp;amp;val&amp;amp;i) output &amp;amp;&amp;amp;table&amp;amp;i;&lt;BR /&gt;%end;&lt;BR /&gt;otherwise;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;%mend splittable;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;options mprint;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;/* (1) Table does not exist */&lt;BR /&gt;%splittable (false, ID)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;/* (2) Column does not exist */&lt;BR /&gt;%splittable (sashelp.cars, Test)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;/* (3) Column includes values with invalid characters */&lt;BR /&gt;%splittable (sashelp.cars, origin)&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 May 2020 13:14:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648276#M22205</guid>
      <dc:creator>BiFrost</dc:creator>
      <dc:date>2020-05-16T13:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Language 1: Essentials (UPDATED)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648279#M22206</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/314530"&gt;@BiFrost&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems that there is a missing comma in the following statement :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options sasautos=("&amp;amp;path/autocall" sasautos);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It should be:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options sasauto=("&amp;amp;path/autocall",sasautos);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;-&amp;gt; If you have defined a folder named "AUTOCALL" and specified the value of the macrovariable PATH in a %LET statement, SAS will normally be able to find the&amp;nbsp;varexist.sas program in this location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 14:02:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648279#M22206</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-05-16T14:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Language 1: Essentials (UPDATED)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648286#M22207</link>
      <description>&lt;P&gt;SAS doesn't need commas there. Just like it doesn't need commas in the lists you give to the IN operator.&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 14:26:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648286#M22207</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-05-16T14:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Language 1: Essentials (UPDATED)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648288#M22208</link>
      <description>&lt;P&gt;You haven't showed the definition for %VAREXIST() or %VARTYPE() macros.&lt;/P&gt;
&lt;P&gt;You haven't showed the definition of PATH macro variable.&lt;/P&gt;
&lt;P&gt;Does the folder &amp;amp;path/autocall even exist?&lt;/P&gt;
&lt;P&gt;Does it contain files named varexits.sas and vartype.sas (note that all of the letters in the the filenames need to be lowercase on a Unix filesystem.)&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 14:30:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648288#M22208</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-05-16T14:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Language 1: Essentials (UPDATED)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648289#M22209</link>
      <description>&lt;P&gt;There are also some misspelling:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc sql; no print; -&amp;gt;&amp;nbsp;proc sql; &lt;FONT color="#0000FF"&gt;noprint&lt;/FONT&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 14:34:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648289#M22209</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-05-16T14:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Language 1: Essentials (UPDATED)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648290#M22210</link>
      <description>Thank you for all your contributions.&lt;BR /&gt;&lt;BR /&gt;The macro is executing with no errors, as the spelling is close enough.&lt;BR /&gt;&lt;BR /&gt;What are the extra lines of code I need, as I’m new to SAS?&lt;BR /&gt;</description>
      <pubDate>Sat, 16 May 2020 14:37:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648290#M22210</guid>
      <dc:creator>BiFrost</dc:creator>
      <dc:date>2020-05-16T14:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Language 1: Essentials (UPDATED)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648295#M22211</link>
      <description>&lt;P&gt;It seems also that there are mistakes in auto call macros:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;varexist.sas&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2020-05-16 à 16.40.18.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39519iE0D72C5E78E47091/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d’écran 2020-05-16 à 16.40.18.png" alt="Capture d’écran 2020-05-16 à 16.40.18.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;vartype.sas &lt;/EM&gt;&lt;/STRONG&gt; &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2020-05-16 à 16.39.53.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39518i797C882373CDFCA2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d’écran 2020-05-16 à 16.39.53.png" alt="Capture d’écran 2020-05-16 à 16.39.53.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 14:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648295#M22211</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-05-16T14:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Language 1: Essentials (UPDATED)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648296#M22212</link>
      <description>This is the piece of code that is producing the error:&lt;BR /&gt;&lt;BR /&gt;/* Check if the column exists in the selected table */&lt;BR /&gt;&lt;BR /&gt;%else %if %varexist(&amp;amp;tab,&amp;amp;col)=0 %then %do;&lt;BR /&gt;proc sql noprint;&lt;BR /&gt;select Name&lt;BR /&gt;into :varlist separated by ", "&lt;BR /&gt;from dictionary.columns&lt;BR /&gt;where libname="%scan(&amp;amp;tab,1)" and&lt;BR /&gt;memname="%scan(&amp;amp;tab,2)";&lt;BR /&gt;quit;&lt;BR /&gt;%put ERROR: Column &amp;amp;col does not exist in &amp;amp;tab..;&lt;BR /&gt;%put ERROR- Columns in &amp;amp;tab include &amp;amp;varlist..;&lt;BR /&gt;%put ERROR- Macro will stop executing.;&lt;BR /&gt;%return;&lt;BR /&gt;%end;&lt;BR /&gt;</description>
      <pubDate>Sat, 16 May 2020 14:49:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648296#M22212</guid>
      <dc:creator>BiFrost</dc:creator>
      <dc:date>2020-05-16T14:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Language 1: Essentials (UPDATED)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648304#M22213</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/314530"&gt;@BiFrost&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try to remove the semicolon at the line before %mend in the vartype.sas program:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2020-05-16 à 17.11.13.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39522i2CECD0137DA4184F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d’écran 2020-05-16 à 17.11.13.png" alt="Capture d’écran 2020-05-16 à 17.11.13.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; Best,&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 15:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648304#M22213</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-05-16T15:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Language 1: Essentials (UPDATED)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648312#M22214</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292097"&gt;@ed_sas_member&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It seems also that there are mistakes in auto call macros:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;varexist.sas&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2020-05-16 à 16.40.18.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39519iE0D72C5E78E47091/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d’écran 2020-05-16 à 16.40.18.png" alt="Capture d’écran 2020-05-16 à 16.40.18.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;vartype.sas &lt;/EM&gt;&lt;/STRONG&gt; &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2020-05-16 à 16.39.53.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39518i797C882373CDFCA2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture d’écran 2020-05-16 à 16.39.53.png" alt="Capture d’écran 2020-05-16 à 16.39.53.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes. The VARTYPE definition does NOT want that semi-colon after &amp;amp;VAL.&amp;nbsp; That will mess up your %IF statements by inserting a semi-colon before the %THEN part of the statement.&lt;/P&gt;
&lt;P&gt;You can work around it by adding some quotes to your code.&amp;nbsp; While you are doing that fix the PROC SQL statement in the N branch.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;...
%else %if "%vartype(&amp;amp;tab,&amp;amp;col)"="N;" %then %do;
proc sql noprint;
...
%else %if "%vartype(&amp;amp;tab,&amp;amp;col)"="C;" %then %do;
...&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;PS&amp;nbsp; You don't really need two macros.&amp;nbsp; Just use the %VAREXIST() macro that Tom Hoffman wrote over 21 years ago.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/sasutils/macros/blob/master/varexist.sas" target="_blank"&gt;https://github.com/sasutils/macros/blob/master/varexist.sas&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if N=%varexist(&amp;amp;tab,&amp;amp;col,type) %then %do;
* Numeric variable exists ;
...
%end;
%else %if C=%varexist(&amp;amp;tab,&amp;amp;col,type) %then %do;
* Character variable exists ;
...
%end;
%else %do;
* Variable does not exist ;
...
%end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 16:30:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648312#M22214</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-05-16T16:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Language 1: Essentials (UPDATED)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648331#M22215</link>
      <description>Thank you for all the replies.&lt;BR /&gt;&lt;BR /&gt;I think my issue is creating the autocall library in the first instance. Not sure exactly how that works? It is a fileref based on my computer drive?&lt;BR /&gt;</description>
      <pubDate>Sat, 16 May 2020 19:06:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648331#M22215</guid>
      <dc:creator>BiFrost</dc:creator>
      <dc:date>2020-05-16T19:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Language 1: Essentials (UPDATED)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648336#M22216</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/314530"&gt;@BiFrost&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thank you for all the replies.&lt;BR /&gt;&lt;BR /&gt;I think my issue is creating the autocall library in the first instance. Not sure exactly how that works? It is a fileref based on my computer drive?&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The SASAUTOS option takes a list of quoted physical directory names or unquoted fileref values.&amp;nbsp; So the example in your code is using one of each.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options sasautos=("&amp;amp;path/autocall" sasautos);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The SASAUTOS file ref should have been automatically defined when your SAS session started. It should point to where SAS can find the macros that come with the product.&lt;/P&gt;
&lt;P&gt;The first directory is the one you need to get right.&amp;nbsp; It is using a macro variable named PATH to specify the higher level directory name and that appending /autocall to that. So it is looking for a subdirectory named autocall in the directory that PATH names.&lt;/P&gt;
&lt;P&gt;The directory has to exist on the machine were SAS is running.&amp;nbsp; If you are using a server then on that server.&amp;nbsp; If you are using SAS University Edition then it needs to be a path that the virtual machine where SAS is running can see.&amp;nbsp; So it will have to be in the directory you shared with the virtual machine when you set it up.&amp;nbsp; And from SAS's point of view the directory name must start with /folders/myfolders as that is how SAS university edition works.&lt;/P&gt;
&lt;P&gt;To test if PATH is set right you could try using %INCLUDE to compile out of those two macros.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include "&amp;amp;path/autocall/varexist.sas";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 19:32:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Macro-Language-1-Essentials-UPDATED/m-p/648336#M22216</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-05-16T19:32:51Z</dc:date>
    </item>
  </channel>
</rss>

