<?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: Odd macro error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Odd-macro-error/m-p/22523#M3648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I get a SAS error similar to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requested Sheet Name not found on Excel -&amp;gt; C:\Users\g1axp03\Documents\My SAS Files\My SAS&lt;/P&gt;&lt;P&gt;Files/2000_2010LifeSchDpt5.xls&lt;/P&gt;&lt;P&gt;Requested Input File Is Invalid&lt;/P&gt;&lt;P&gt;ERROR: Import unsuccessful.&amp;nbsp; See SAS Log for details.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.31 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.91 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS can't recognize the file, because the forward slash is not in the filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried some basic troubleshooting. Resetting SAS, changing the file location and changing the file name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Oct 2011 15:53:16 GMT</pubDate>
    <dc:creator>apolace1</dc:creator>
    <dc:date>2011-10-03T15:53:16Z</dc:date>
    <item>
      <title>Odd macro error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Odd-macro-error/m-p/22521#M3646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running a fairly simple macro to import multiple sheets from an excel file into SAS. The problem is that in the DATA STEP the datafile ends up with a reverse slash, so that the DATAFiLE line reads: &lt;/P&gt;&lt;P&gt;DATAFILE= "O:\PROJ_LIB\Insurance\Schedule D Part34&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/SPAN&gt;2007_2009 Life SchDpt3.xls" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%MACRO LIFE1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %DO i = 1 %to 6;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROC IMPORT OUT=schd.LIFE_SchDpt4_2007_2009sheet&amp;amp;i.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATAFILE= "O:\PROJ_LIB\Insurance\Schedule D Part34\2007_2009 Life SchDpt3.xls" &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=XLS REPLACE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet="Sheet&amp;amp;i.";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GETNAMES=YES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %END;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %MEND;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %LIFE1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any idea why I keep getting a forward slash instead of the backslash that I put into my code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 15:20:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Odd-macro-error/m-p/22521#M3646</guid>
      <dc:creator>apolace1</dc:creator>
      <dc:date>2011-10-03T15:20:57Z</dc:date>
    </item>
    <item>
      <title>Odd macro error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Odd-macro-error/m-p/22522#M3647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've never encountered that behavior before but, regardless, it should still work correctly.&amp;nbsp; Does it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 15:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Odd-macro-error/m-p/22522#M3647</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-10-03T15:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Odd macro error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Odd-macro-error/m-p/22523#M3648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I get a SAS error similar to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requested Sheet Name not found on Excel -&amp;gt; C:\Users\g1axp03\Documents\My SAS Files\My SAS&lt;/P&gt;&lt;P&gt;Files/2000_2010LifeSchDpt5.xls&lt;/P&gt;&lt;P&gt;Requested Input File Is Invalid&lt;/P&gt;&lt;P&gt;ERROR: Import unsuccessful.&amp;nbsp; See SAS Log for details.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.31 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.91 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS can't recognize the file, because the forward slash is not in the filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried some basic troubleshooting. Resetting SAS, changing the file location and changing the file name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 15:53:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Odd-macro-error/m-p/22523#M3648</guid>
      <dc:creator>apolace1</dc:creator>
      <dc:date>2011-10-03T15:53:16Z</dc:date>
    </item>
    <item>
      <title>Odd macro error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Odd-macro-error/m-p/22524#M3649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have always found that SAS ignores the directionality of the slashes (i.e., works well regardless if one uses back slashes, forward slashes, or a combination of them).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, in your example the input file was on drive O:, but you indicate that it returned a message regarding drive c: .. and in a typical user path rather than the path you had specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could it be that it simply can't find the file in the path that you specified?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2011 15:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Odd-macro-error/m-p/22524#M3649</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-10-03T15:58:14Z</dc:date>
    </item>
  </channel>
</rss>

