<?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: Help with Unix date on filename in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-with-Unix-date-on-filename/m-p/346254#M273184</link>
    <description>&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Try this:&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Instead of the today() in the outfile statement, go to &amp;nbsp;&lt;/FONT&gt;&lt;A href="http://www.epochconverter.com/" target="_blank"&gt;&lt;FONT color="#0000ff" face="Calibri" size="3"&gt;www.epochconverter.com&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;(I've found this site quite helpful for my date needs).&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Scroll down until you see the format for unix time.&amp;nbsp; You can use this for the proper format for your unix timestamp for the file name.&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Hope this helps!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2017 17:47:55 GMT</pubDate>
    <dc:creator>AaroninMN</dc:creator>
    <dc:date>2017-03-31T17:47:55Z</dc:date>
    <item>
      <title>Help with Unix date on filename</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-Unix-date-on-filename/m-p/346253#M273183</link>
      <description>&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Help needed.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;I’m running SAS 9.4 TS Level 1M3 X64_SRV12 platform.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;A vendor requested that I provide a datafile that contains a unix time stamp in the filename.&amp;nbsp; I’ve created macro variables previously with dates such as &amp;nbsp;&lt;/FONT&gt;&lt;SPAN style="background: white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt; dt="25FEB2017"d; and have used variables in the file name before such as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="background: white; color: navy; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;proc&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN style="background: white; color: navy; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;export&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN style="background: white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;=histfile1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;outfile&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;"E:/SASuser/DBS_Stage/Reporting/Weekly Composite Report/data_h_%sysfunc(today(),yymmdd7).csv"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;dbms&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;=csv &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Is there a format specific to Unix dates that I need to use?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 17:46:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-Unix-date-on-filename/m-p/346253#M273183</guid>
      <dc:creator>Jpep</dc:creator>
      <dc:date>2017-03-31T17:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Unix date on filename</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-Unix-date-on-filename/m-p/346254#M273184</link>
      <description>&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Try this:&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Instead of the today() in the outfile statement, go to &amp;nbsp;&lt;/FONT&gt;&lt;A href="http://www.epochconverter.com/" target="_blank"&gt;&lt;FONT color="#0000ff" face="Calibri" size="3"&gt;www.epochconverter.com&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;(I've found this site quite helpful for my date needs).&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Scroll down until you see the format for unix time.&amp;nbsp; You can use this for the proper format for your unix timestamp for the file name.&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Hope this helps!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 17:47:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-Unix-date-on-filename/m-p/346254#M273184</guid>
      <dc:creator>AaroninMN</dc:creator>
      <dc:date>2017-03-31T17:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Unix date on filename</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-Unix-date-on-filename/m-p/346255#M273185</link>
      <description>&lt;P&gt;This is a great resource! I will share this with my team as well.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 17:50:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-Unix-date-on-filename/m-p/346255#M273185</guid>
      <dc:creator>Jpep</dc:creator>
      <dc:date>2017-03-31T17:50:22Z</dc:date>
    </item>
  </channel>
</rss>

