<?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: Include date of file when importing in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Include-date-of-file-when-importing/m-p/181500#M46239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply Barnipaz &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But wouldn't this just give the present date ? I'm trying to create a variable that will show when this file (the excel file) was created, that is 2013/xx/xx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Feb 2014 09:33:25 GMT</pubDate>
    <dc:creator>mjheever</dc:creator>
    <dc:date>2014-02-21T09:33:25Z</dc:date>
    <item>
      <title>Include date of file when importing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Include-date-of-file-when-importing/m-p/181498#M46237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAS Community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to create a date variable when importing a .csv file ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words, I want to import the file, and then additionally I want to create a new variable (that will be included in the data set) to display the date of when the file was created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you guys have any suggestions ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 07:52:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Include-date-of-file-when-importing/m-p/181498#M46237</guid>
      <dc:creator>mjheever</dc:creator>
      <dc:date>2014-02-21T07:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Include date of file when importing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Include-date-of-file-when-importing/m-p/181499#M46238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a datastep after the input 'section' put&amp;nbsp; something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data load;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile 'path_file' &amp;lt;option&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var1 ... varn&lt;/P&gt;&lt;P&gt; ;&lt;/P&gt;&lt;P&gt; load_date=today();&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Work on the the datastep that i wrote because it's just an example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 09:26:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Include-date-of-file-when-importing/m-p/181499#M46238</guid>
      <dc:creator>Barnipaz</dc:creator>
      <dc:date>2014-02-21T09:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Include date of file when importing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Include-date-of-file-when-importing/m-p/181500#M46239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply Barnipaz &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But wouldn't this just give the present date ? I'm trying to create a variable that will show when this file (the excel file) was created, that is 2013/xx/xx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 09:33:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Include-date-of-file-when-importing/m-p/181500#M46239</guid>
      <dc:creator>mjheever</dc:creator>
      <dc:date>2014-02-21T09:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Include date of file when importing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Include-date-of-file-when-importing/m-p/181501#M46240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you know the date, for example February 3rd 2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load_date='03feb2013'd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you get it from some place, for example from the file name, get it and put in the expression. There are function the take the file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'l give you a tip, a very important one.&lt;/P&gt;&lt;P&gt;Study all the function, format, informat and, all macrovariable created by default. With them you can do almost everything in SAS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 09:47:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Include-date-of-file-when-importing/m-p/181501#M46240</guid>
      <dc:creator>Barnipaz</dc:creator>
      <dc:date>2014-02-21T09:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Include date of file when importing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Include-date-of-file-when-importing/m-p/181502#M46241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FINFO() function will give you this information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 10:55:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Include-date-of-file-when-importing/m-p/181502#M46241</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-02-21T10:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Include date of file when importing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Include-date-of-file-when-importing/m-p/181503#M46242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the help guys :smileygrin: :smileygrin: :smileygrin:. &lt;/P&gt;&lt;P&gt;Got the info of the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 07:57:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Include-date-of-file-when-importing/m-p/181503#M46242</guid>
      <dc:creator>mjheever</dc:creator>
      <dc:date>2014-02-24T07:57:18Z</dc:date>
    </item>
  </channel>
</rss>

