<?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: Adding variables to macro in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405076#M26033</link>
    <description>&lt;P&gt;Also under SYMBOLGEN in the log, I'm getting DID resolves to 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using an UNC path without any Quotes or Apostrophes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2017 01:37:53 GMT</pubDate>
    <dc:creator>OscarBoots1</dc:creator>
    <dc:date>2017-10-18T01:37:53Z</dc:date>
    <item>
      <title>Adding variables to macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/404650#M25993</link>
      <description>&lt;P&gt;Hi Forum,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to understand where to add my parameters for the below macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand that I need to declare variables - Directory paths &amp;amp; filenames etc but I'm not clear where I should with this one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=n0ctmldxf23ixtn1kqsoh5bsgmg8.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=n0ctmldxf23ixtn1kqsoh5bsgmg8.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro drive(dir,ext); 
   %local cnt filrf rc did memcnt name; 
   %let cnt=0;          

   %let filrf=mydir;    
   %let rc=%sysfunc(filename(filrf,&amp;amp;dir)); 
   %let did=%sysfunc(dopen(&amp;amp;filrf));
    %if &amp;amp;did ne 0 %then %do;   
   %let memcnt=%sysfunc(dnum(&amp;amp;did));    

    %do i=1 %to &amp;amp;memcnt;              
                       
      %let name=%qscan(%qsysfunc(dread(&amp;amp;did,&amp;amp;i)),-1,.);   &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Example on the fist line -&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro drive(dir,ext); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Should I be changing dir for the full directory path , and the file extension for ext?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also don't get how filrf gets it value?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%local cnt filrf rc did memcnt name; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Can anyone clarify?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 01:25:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/404650#M25993</guid>
      <dc:creator>OscarBoots1</dc:creator>
      <dc:date>2017-10-17T01:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Adding variables to macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/404653#M25994</link>
      <description>&lt;P&gt;You don't modify that section at all. You call the macro.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a base example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro print(dsetin=);

proc print data=&amp;amp;dsetin;
run;

%mend;

%print(destin = sashelp.class);
%print(destin = sashelp.cars);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The two parameters there are:&lt;/P&gt;
&lt;P&gt;1. dir -&amp;gt; directory of where the files are stored.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. ext -&amp;gt; extension of files of interest, in this case XLSX&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 01:33:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/404653#M25994</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-17T01:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding variables to macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/404657#M25995</link>
      <description>&lt;P&gt;Thanks Reeza but i still don't follow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm used to VBA where you write a macro &amp;amp; then Call it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But any variables need to be Declared, where are the values declared in the script OR do I need to see the Macros own script so I can see what it's doing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 01:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/404657#M25995</guid>
      <dc:creator>OscarBoots1</dc:creator>
      <dc:date>2017-10-17T01:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adding variables to macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/404659#M25996</link>
      <description>&lt;P&gt;SAS doesn't require a declaration of variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The full macro script is there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 02:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/404659#M25996</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-17T02:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding variables to macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/404660#M25997</link>
      <description>&lt;P&gt;Here's a good tutorial on macros:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stats.idre.ucla.edu/sas/seminars/sas-macros-introduction/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/seminars/sas-macros-introduction/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 02:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/404660#M25997</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-17T02:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding variables to macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/404663#M25998</link>
      <description>&lt;P&gt;Thanks Reeza I'll have a read.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 03:26:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/404663#M25998</guid>
      <dc:creator>OscarBoots1</dc:creator>
      <dc:date>2017-10-17T03:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding variables to macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/404693#M26005</link>
      <description>&lt;P&gt;From your link, this is the important section:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="p0gzqiqish8h64n1avs4lj4mqmsf" class="xis-paragraph" style="box-sizing: border-box; margin-top: 1.4em; color: #333333; font-family: AvenirNext, Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;Invoke the macro. The first parameter is the directory where the files exist. The second parameter is the extension of the files that you are importing.&lt;/DIV&gt;
&lt;DIV id="n0ugcamct90afkn1x1vcut8w53bp" class="xis-codeBlock" style="box-sizing: border-box; margin-top: 1.4em; overflow: auto; background-color: #ffffff; border: 0px; border-radius: 0px; padding: 0px; color: #333333; font-family: AvenirNext, Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;
&lt;PRE class="xis-code" style="box-sizing: border-box; overflow: auto; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; display: block; padding: 0px; margin: 0px 0px 0px 1.5em; line-height: 1.42857; color: #333333; word-break: break-all; word-wrap: inherit; background-color: transparent; border: 0px; border-radius: 0px;"&gt;%drive(c:\temp,csv)&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;That's all you have to do. Everything before that is just a step-by-step description how the macro works. It is only of interest if you want to learn writing macros yourself. But before that, you must familiarize yourself with all the Base SAS functions used.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Oct 2017 07:31:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/404693#M26005</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-10-17T07:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding variables to macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405042#M26024</link>
      <description>&lt;P&gt;Thanks Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I replaced the 'dir' with my UNC path to a Network Folder &amp;amp; xls as the file type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting an error as the path is &amp;gt; 32 characters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this what my code looks like at the start;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; %macro drive("\\abc\def\ghi\My_Report","xls"); 
   %local cnt filrf rc did memcnt name; 
   %let cnt=0;       &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;By the way I've tried Apostrophes &amp;amp; Quotes top wrap the path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions how I can replace the path?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I add a line that says dir = 'Path_name' - for example?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 22:03:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405042#M26024</guid>
      <dc:creator>OscarBoots1</dc:creator>
      <dc:date>2017-10-17T22:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adding variables to macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405047#M26026</link>
      <description>&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;YOU DO NOT CHANGE ANYTHING BETWEEN THE MACRO AND MEND STATEMENTS.&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Unless you're trying to write your own, which I don't think you are.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You use the macro by calling the name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;%drive&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;\\abc\def\ghi\My_Report&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;xls&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 22:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405047#M26026</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-17T22:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding variables to macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405051#M26027</link>
      <description>&lt;P&gt;Gotcha, thanks Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it's similar to what I've used in SQL Server a tvf or svf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 22:50:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405051#M26027</guid>
      <dc:creator>OscarBoots1</dc:creator>
      <dc:date>2017-10-17T22:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding variables to macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405053#M26028</link>
      <description>&lt;P&gt;One more for you, I want the .xls file to be imported into my SAS EG Project as a table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The macro is running but I'm not sure whether I should use apostrophes, Quotes or nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;amp; I'm not getting any output?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 23:02:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405053#M26028</guid>
      <dc:creator>OscarBoots1</dc:creator>
      <dc:date>2017-10-17T23:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding variables to macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405061#M26029</link>
      <description>&lt;P&gt;That depends on the macro. I can’t see your code so I have no idea of what you ran or what to expect.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you’re using the code from the appendix that’s only the list of files. The full I linked to is required to import all the files. Or something along those lines.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 00:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405061#M26029</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-18T00:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding variables to macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405066#M26030</link>
      <description>&lt;P&gt;Ok, I've posted the full code I'm running, problem is no tables imported into EG?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro drive(dir,ext); 
   %local cnt filrf rc did memcnt name; 
   %let cnt=0;          

   %let filrf=mydir;    
   %let rc=%sysfunc(filename(filrf,&amp;amp;dir)); 
   %let did=%sysfunc(dopen(&amp;amp;filrf));
    %if &amp;amp;did ne 0 %then %do;   
   %let memcnt=%sysfunc(dnum(&amp;amp;did));    

    %do i=1 %to &amp;amp;memcnt;              
                       
      %let name=%qscan(%qsysfunc(dread(&amp;amp;did,&amp;amp;i)),-1,.);                    
                    
      %if %qupcase(%qsysfunc(dread(&amp;amp;did,&amp;amp;i))) ne %qupcase(&amp;amp;name) %then %do;
       %if %superq(ext) = %superq(name) %then %do;                         
          %let cnt=%eval(&amp;amp;cnt+1);       
          %put %qsysfunc(dread(&amp;amp;did,&amp;amp;i));  
          proc import datafile="&amp;amp;dir\%qsysfunc(dread(&amp;amp;did,&amp;amp;i))" out=dsn&amp;amp;cnt 
           dbms=xls replace;            
          run;          
       %end; 
      %end;  

    %end;
      %end;
  %else %put &amp;amp;dir cannot be open.;
  %let rc=%sysfunc(dclose(&amp;amp;did));      
             
 %mend drive;
 
%drive('F:\Data\Reports\Test_Reports','xls') 

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Oct 2017 00:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405066#M26030</guid>
      <dc:creator>OscarBoots1</dc:creator>
      <dc:date>2017-10-18T00:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding variables to macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405069#M26031</link>
      <description>&lt;P&gt;You definitely don't need quotes in the macro call.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A macro is more like a stored procedure in SQL that you can call with parameters.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Set the following options before the macro call, rerun it and then check your log. You'll see the exact code that's being submitted. If the code doesn't look like valid SAS syntax it can't run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint symbolgen;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Oct 2017 01:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405069#M26031</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-18T01:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Adding variables to macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405075#M26032</link>
      <description>&lt;P&gt;Thanks I did that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code looks OK but I'm getting an&amp;nbsp; error saying the dir path cannot be opened?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 01:34:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405075#M26032</guid>
      <dc:creator>OscarBoots1</dc:creator>
      <dc:date>2017-10-18T01:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Adding variables to macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405076#M26033</link>
      <description>&lt;P&gt;Also under SYMBOLGEN in the log, I'm getting DID resolves to 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using an UNC path without any Quotes or Apostrophes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 01:37:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405076#M26033</guid>
      <dc:creator>OscarBoots1</dc:creator>
      <dc:date>2017-10-18T01:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding variables to macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405090#M26034</link>
      <description>&lt;P&gt;I've now changed the Directory path Folder to C:\Temp\csv.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still get the error;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;SYMBOLGEN:  Macro variable DIR resolves to C:\Temp\csv
C:\Temp\csv cannot be open.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Oct 2017 03:10:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405090#M26034</guid>
      <dc:creator>OscarBoots1</dc:creator>
      <dc:date>2017-10-18T03:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Adding variables to macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405099#M26035</link>
      <description>&lt;P&gt;Post the full code and log.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 04:37:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405099#M26035</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-18T04:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding variables to macro</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405106#M26036</link>
      <description>&lt;P&gt;If DID resolves to zero, the dopen did not work. Which means that the resource in the filesystem is not accessible from the context of the SAS session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your SAS runs on a server, local directories on your desktop will not be accessible. And UNC resources available on your desktop may not be there on your server. Or you have different permissions when trying access from the server.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 05:50:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Adding-variables-to-macro/m-p/405106#M26036</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-10-18T05:50:53Z</dc:date>
    </item>
  </channel>
</rss>

