<?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 Can't get %include to work. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-include-to-work/m-p/882876#M348837</link>
    <description>&lt;P&gt;I don't understand why it will not recognize this macro. It is in the folder. Any suggestions? Thanks.&lt;/P&gt;&lt;P&gt;%let home = H:\HardDrive5\Laptop Backup 7-13-14\HEI\;&lt;/P&gt;&lt;P&gt;filename Totals '&amp;amp;home\ Data for HEI calc each day.csv';&lt;/P&gt;&lt;P&gt;filename res '&amp;amp;home\Results';&lt;/P&gt;&lt;P&gt;%include 'H:/HardDrive5/Laptop Backup 7-13-14/HEI /hei2015.score.macro.sas';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Physical file does not exist, H:\HardDrive5\Laptop Backup 7-13-14\HEI&amp;nbsp;\hei2015.score.macro.sas.&lt;/P&gt;&lt;P&gt;ERROR: Cannot open %INCLUDE file H:/HardDrive5/Laptop Backup 7-13-14/HEI /hei2015.score.macro.sas.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2023 23:58:31 GMT</pubDate>
    <dc:creator>LauriB</dc:creator>
    <dc:date>2023-06-28T23:58:31Z</dc:date>
    <item>
      <title>Can't get %include to work.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-include-to-work/m-p/882876#M348837</link>
      <description>&lt;P&gt;I don't understand why it will not recognize this macro. It is in the folder. Any suggestions? Thanks.&lt;/P&gt;&lt;P&gt;%let home = H:\HardDrive5\Laptop Backup 7-13-14\HEI\;&lt;/P&gt;&lt;P&gt;filename Totals '&amp;amp;home\ Data for HEI calc each day.csv';&lt;/P&gt;&lt;P&gt;filename res '&amp;amp;home\Results';&lt;/P&gt;&lt;P&gt;%include 'H:/HardDrive5/Laptop Backup 7-13-14/HEI /hei2015.score.macro.sas';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Physical file does not exist, H:\HardDrive5\Laptop Backup 7-13-14\HEI&amp;nbsp;\hei2015.score.macro.sas.&lt;/P&gt;&lt;P&gt;ERROR: Cannot open %INCLUDE file H:/HardDrive5/Laptop Backup 7-13-14/HEI /hei2015.score.macro.sas.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 23:58:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-get-include-to-work/m-p/882876#M348837</guid>
      <dc:creator>LauriB</dc:creator>
      <dc:date>2023-06-28T23:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get %include to work.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-include-to-work/m-p/882880#M348839</link>
      <description>&lt;P&gt;Your first two FILENAME statement cannot work because you are trying to use macro code inside of a quoted string that is bounded by single quote characters.&amp;nbsp; The macro processor will ignore those strings.&amp;nbsp; You need to use double quote characters instead to make those string literals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the %INCLUDE statement looks ok other than that you are using the wrong delimiter for a WIndow filename.&amp;nbsp; Windows uses \ and not / between the directory levels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you sure the H drive is mounted on the machine where SAS is running?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 01:16:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-get-include-to-work/m-p/882880#M348839</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-06-29T01:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get %include to work.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-include-to-work/m-p/882881#M348840</link>
      <description>&lt;P&gt;If your SAS session is running on a remote SAS server then it won't be able to read your PC's H drive. You need to move the sas program file to a folder accessible by your SAS server.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 01:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-get-include-to-work/m-p/882881#M348840</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-06-29T01:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get %include to work.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-include-to-work/m-p/882885#M348843</link>
      <description>Thanks for the response. It is not running on a remote server.&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jun 2023 01:53:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-get-include-to-work/m-p/882885#M348843</guid>
      <dc:creator>LauriB</dc:creator>
      <dc:date>2023-06-29T01:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get %include to work.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-include-to-work/m-p/882889#M348845</link>
      <description>&lt;P&gt;Try this. Are you really using multiple dots in your SAS macro filename?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let home = H:\HardDrive5\Laptop Backup 7-13-14\HEI;
filename Totals "&amp;amp;home\Data for HEI calc each day.csv";
filename res "&amp;amp;home\Results";
%include "&amp;amp;home\hei2015.score.macro.sas";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Jun 2023 02:52:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-get-include-to-work/m-p/882889#M348845</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-06-29T02:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get %include to work.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-include-to-work/m-p/882890#M348846</link>
      <description>&lt;P&gt;Have you try to rename&amp;nbsp;&lt;SPAN&gt;hei2015.score.macro.sas to hei2015_score_macro.sas and update the program with the new name?&amp;nbsp; Will that work?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alice Cheng&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 03:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-get-include-to-work/m-p/882890#M348846</guid>
      <dc:creator>AliceCheng</dc:creator>
      <dc:date>2023-06-29T03:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get %include to work.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-include-to-work/m-p/882896#M348848</link>
      <description>&lt;P&gt;Remove the blank between HEI and the following slash.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 05:14:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-get-include-to-work/m-p/882896#M348848</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-06-29T05:14:27Z</dc:date>
    </item>
  </channel>
</rss>

