<?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: Proc Import Excel file tab with the current month in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-Excel-file-tab-with-the-current-month/m-p/274838#M58523</link>
    <description>&lt;P&gt;... Or go directly for&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc import datafile="&amp;amp;sasforum\datasets\testdatetab.xlsx" out=test replace;
sheet="%sysfunc(putn(%sysfunc(today()),mmyyd5.))";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;if you don't need the sheet name for other purposes.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jun 2016 02:10:02 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-06-03T02:10:02Z</dc:date>
    <item>
      <title>Proc Import Excel file tab with the current month</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-Excel-file-tab-with-the-current-month/m-p/274819#M58521</link>
      <description>&lt;P&gt;I will be importing an excel file using proc import. &amp;nbsp;The excel file is updated every month with a new tab for that month. (Ex: "06-16" as the tab name). &amp;nbsp;Is there a way to only import the tab that has the current month as the tab name?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 21:41:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-Excel-file-tab-with-the-current-month/m-p/274819#M58521</guid>
      <dc:creator>LAtwood</dc:creator>
      <dc:date>2016-06-02T21:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import Excel file tab with the current month</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-Excel-file-tab-with-the-current-month/m-p/274831#M58522</link>
      <description>&lt;P&gt;This code will return the current date in MM-YY format:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0080" face="SAS Monospace" size="2"&gt;%let&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; tab = &lt;/FONT&gt;&lt;FONT color="#ff0080" face="SAS Monospace" size="2"&gt;%sysfunc&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;(putn(&lt;/FONT&gt;&lt;FONT color="#ff0080" face="SAS Monospace" size="2"&gt;%sysfunc&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;(today()),mmyyd5.));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;Use "&amp;amp;tab" where you would reference the sheet name.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 23:00:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-Excel-file-tab-with-the-current-month/m-p/274831#M58522</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-06-02T23:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import Excel file tab with the current month</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-Excel-file-tab-with-the-current-month/m-p/274838#M58523</link>
      <description>&lt;P&gt;... Or go directly for&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc import datafile="&amp;amp;sasforum\datasets\testdatetab.xlsx" out=test replace;
sheet="%sysfunc(putn(%sysfunc(today()),mmyyd5.))";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;if you don't need the sheet name for other purposes.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 02:10:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-Excel-file-tab-with-the-current-month/m-p/274838#M58523</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-03T02:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import Excel file tab with the current month</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-Excel-file-tab-with-the-current-month/m-p/274880#M58525</link>
      <description>&lt;P&gt;Or go down the correct route, build a data transfer agreement which both the sender and you agree to which details what data should be sent, what the strcuture of the data should be, also wether is will be cumulative or incremental, and fix the data transfer type using a proper data transfer file format - CSV, XML dataset etc. &amp;nbsp;That way you can write a simple datastep import to properly process the data into a useable format according to a documented process, and it is reproduceable. &amp;nbsp;Using Excel and proc import is the bigget method to failure and the reason why we see so many questions on here about messy data - it hasn't been processed correctly in the first place.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 08:29:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Import-Excel-file-tab-with-the-current-month/m-p/274880#M58525</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-06-03T08:29:25Z</dc:date>
    </item>
  </channel>
</rss>

