<?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: How to call macro in excel sheet name proc import in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-call-macro-in-excel-sheet-name-proc-import/m-p/599098#M172868</link>
    <description>&lt;P&gt;Please re-run the code with the following as the first line&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint symbolgen mlogic;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show us the SAS log for this step, both the code and any ERROR messages. Please click on the {i} icon and paste the log into this window that appears ... &lt;STRONG&gt;do not skip this step&lt;/STRONG&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2019 16:48:47 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-10-24T16:48:47Z</dc:date>
    <item>
      <title>How to call macro in excel sheet name proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-call-macro-in-excel-sheet-name-proc-import/m-p/599096#M172867</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, I am trying to call a sas macro within the excel sheet name using proc import. I tried below. But &amp;amp;yr is not resolving. Please help. Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let yr=%sysfunc(intnx(day,%sysfunc(today()),0,B),year.);&lt;BR /&gt;%put &amp;amp;yr;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc import datafile=innfile out=data&lt;BR /&gt;dbms=xls replace;&lt;BR /&gt;sheet="1PMMS&lt;STRONG&gt;&amp;amp;yr.";&lt;/STRONG&gt;&lt;BR /&gt;getnames=no;&lt;BR /&gt;datarow=8;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 16:46:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-call-macro-in-excel-sheet-name-proc-import/m-p/599096#M172867</guid>
      <dc:creator>ilearnsas</dc:creator>
      <dc:date>2019-10-24T16:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to call macro in excel sheet name proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-call-macro-in-excel-sheet-name-proc-import/m-p/599098#M172868</link>
      <description>&lt;P&gt;Please re-run the code with the following as the first line&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint symbolgen mlogic;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show us the SAS log for this step, both the code and any ERROR messages. Please click on the {i} icon and paste the log into this window that appears ... &lt;STRONG&gt;do not skip this step&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 16:48:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-call-macro-in-excel-sheet-name-proc-import/m-p/599098#M172868</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-24T16:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to call macro in excel sheet name proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-call-macro-in-excel-sheet-name-proc-import/m-p/599105#M172871</link>
      <description>&lt;P&gt;I re ran the same with options statement and it worked just fine. Not sure what the issue was. Thank you! Appreciate it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 16:58:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-call-macro-in-excel-sheet-name-proc-import/m-p/599105#M172871</guid>
      <dc:creator>ilearnsas</dc:creator>
      <dc:date>2019-10-24T16:58:06Z</dc:date>
    </item>
  </channel>
</rss>

