<?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: getting all files with date and time stamp in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310264#M66900</link>
    <description>&lt;P&gt;Have you seen this?&lt;/P&gt;
&lt;P&gt;you'll need to replace the commands (with ls and ps) and then this macro may be useful to you.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2016 03:11:43 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2016-11-09T03:11:43Z</dc:date>
    <item>
      <title>getting all files with date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310075#M66822</link>
      <description>&lt;P&gt;Hello friends, i am using below code to get ALL files + file size + changed (date and time) from specific dir. however, not getting enough data as output - only getting file names. I need file &lt;EM&gt;&lt;STRONG&gt;size&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;and &lt;EM&gt;&lt;STRONG&gt;changed&lt;/STRONG&gt;&lt;/EM&gt; variable&amp;nbsp;as well...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;have&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; changed&lt;/P&gt;
&lt;P&gt;sfvjsddvjlsbvaskdv&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/8/2016 10:10:00 AM&lt;/P&gt;
&lt;P&gt;sjklvnsvnsvk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/8/2016&amp;nbsp; 5:15:20 AM&amp;nbsp;&lt;/P&gt;
&lt;P&gt;svjnksdivjpifvusvknivuhiv&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;123456&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;11/7/2016 15:07:00&amp;nbsp;PM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;code&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;filename&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; init &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;pipe&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"dir /test/"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; all_files;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;length&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; fname $ &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;200&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; size $ &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;20&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; time $ &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;20&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;infile&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; init &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;truncover&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; fname size time$;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt;output&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;sfvjsddvjlsbvaskdv&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sjklvnsvnsvk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;svjnksdivjpifvusvknivuhiv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;want&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; changed&lt;/P&gt;
&lt;P&gt;sfvjsddvjlsbvaskdv&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/8/2016 10:10:00 AM&lt;/P&gt;
&lt;P&gt;sjklvnsvnsvk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/8/2016&amp;nbsp; 5:15:20 AM&amp;nbsp;&lt;/P&gt;
&lt;P&gt;svjnksdivjpifvusvknivuhiv&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;123456&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;11/7/2016 15:07:00&amp;nbsp;PM&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 14:12:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310075#M66822</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2016-11-08T14:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: getting all files with date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310080#M66823</link>
      <description>&lt;P&gt;If your system is Windows, then doing dir /temp is a bad idea, because the forward slash signals a commandline option to dir, so it will complain because emp (what follows after the /t, which is valid) is invalid.&lt;/P&gt;
&lt;P&gt;Use dir c:\temp\ instead.&lt;/P&gt;
&lt;P&gt;If you're working on UNIX (Linux), use ls -l instead of dir.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does your log say?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 14:23:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310080#M66823</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-08T14:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: getting all files with date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310083#M66825</link>
      <description>&lt;P&gt;For windows:&lt;/P&gt;
&lt;PRE&gt;filename tmp pipe 'dir "S:\temp\rob" /tc /a-d';

data want;
  infile tmp dlm="¬";
  length buff $2000;
  input buff;
  if _n_ &amp;gt; 3 and index(buff,"File")=0 and index(buff,"Dir")=0 then do;
    date=input(scan(buff,1," "),ddmmyy10.);
    size=...;
    name=...;
  end;
  format date date9.;
run;&lt;/PRE&gt;
&lt;P&gt;Only parsed out creation date indicated by /tc, you can add the other two in, quite simple.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 14:27:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310083#M66825</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-11-08T14:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: getting all files with date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310168#M66856</link>
      <description>&lt;P&gt;Thank you RW9 -&amp;nbsp;we have&amp;nbsp;Linux - and my ultimate goal is finding unused/orphaned temporary sessions and delete it...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 17:04:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310168#M66856</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2016-11-08T17:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: getting all files with date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310172#M66860</link>
      <description>&lt;P&gt;Then you would need to manipulate the code to match the OS commands you would use on Linux.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for removing temporary sessions, how would looking at a dir list show you unused sessions? &amp;nbsp;I would imagine there are better processes out there to do this, however without knowing software/setups etc. I can't really say. &amp;nbsp;Check with your SAS admin, software support to see on options.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 17:09:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310172#M66860</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-11-08T17:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: getting all files with date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310174#M66861</link>
      <description>&lt;P&gt;thank you "&lt;A class="lia-link-navigation lia-page-link lia-user-name-link" id="link_13" style="color: rgb(0, 153, 153);" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562" target="_self"&gt;&lt;SPAN class="login-bold"&gt;KurtBremser&lt;/SPAN&gt;&lt;/A&gt;" ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i tried below and worked fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;length&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; access $ &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;20&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; files $ &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;200&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;infile&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"cd /testdir; ls -lt;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;pipe&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;firstobs&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; access nx $ user $ group $ size $ month $ day $ time $ files;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;however, i have day and month are character - and i want to combine in one variable like month_day with &lt;STRONG&gt;appropriate format&lt;/STRONG&gt;...what can i do? i tried different way but didn't work...&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;i can simply combine it like, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;month_day=month||day; but want proper format....&lt;/FONT&gt;&lt;/FONT&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;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 17:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310174#M66861</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2016-11-08T17:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: getting all files with date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310178#M66865</link>
      <description>&lt;P&gt;@RW - i am planning to prepare spcific variable with x command value for all temp dir like;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13521"&gt;@RW&lt;/a&gt; - i am planning to prepare spcific variable with x command value for all temp dir like;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;spec_var&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;x "rm dir sas_work........"&lt;/P&gt;
&lt;P&gt;x" rm dir sas_util......."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then use filevar to execute to delete it...would that work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate your input...&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 17:19:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310178#M66865</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2016-11-08T17:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: getting all files with date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310203#M66879</link>
      <description>&lt;P&gt;You might investigate the SAS external file functions Dopen to "open" a directory for reading, Dnum the number of items in a directory, Dread returns names of directory members, Doptnum and Doptname information items availalbe in a directory, Finfo information abut a file using Foptnum and Foptname gets things like the creation date, file size and such, And Fdelete to remove files or directories.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unless you are frequently changing operating systems once you know the optnames or optnums you want code isn't terribly long and you need not creat filereferences or use the X command. Or you could build the the X commands and execute using Call Execute.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 19:05:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310203#M66879</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-11-08T19:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: getting all files with date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310236#M66890</link>
      <description>&lt;P&gt;To remove the orphaned work locations from crashed SAS sessions, use the cleanwork utility provided by SAS.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 20:52:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310236#M66890</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-08T20:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: getting all files with date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310254#M66897</link>
      <description>&lt;P&gt;somehow, cleanwork utility doens't do all cleanup. still some session left behind...some of them are&amp;nbsp;really old sessions....dont' know why...&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 23:45:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310254#M66897</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2016-11-08T23:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: getting all files with date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310264#M66900</link>
      <description>&lt;P&gt;Have you seen this?&lt;/P&gt;
&lt;P&gt;you'll need to replace the commands (with ls and ps) and then this macro may be useful to you.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 03:11:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310264#M66900</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-11-09T03:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: getting all files with date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310272#M66904</link>
      <description>&lt;P&gt;what macro?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 04:42:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310272#M66904</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2016-11-09T04:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: getting all files with date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310274#M66905</link>
      <description>&lt;P&gt;oops &lt;img id="smileyembarrassed" class="emoticon emoticon-smileyembarrassed" src="https://communities.sas.com/i/smilies/16x16_smiley-embarrassed.png" alt="Smiley Embarassed" title="Smiley Embarassed" /&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.ryslander.com/delete-orphan-sas-work-directories-on-windows/" target="_blank"&gt;http://www.ryslander.com/delete-orphan-sas-work-directories-on-windows/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 04:46:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310274#M66905</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-11-09T04:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: getting all files with date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310300#M66913</link>
      <description>&lt;P&gt;cleanwork willl remove directories that have no corresponding process (the process number is hexadecimally coded into the directory name) in the process list. So your problem might not be orphaned data, but orphaned processes. These need to be dealt with by killing them.&lt;/P&gt;
&lt;P&gt;Oh yes, and for killing processes and removing data of other users, you need superuser privileges in UNIX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS cleanwork works fine here, but my SAS runs not on a Windows toybox, but on an operating system that deserves such a label.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 07:20:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310300#M66913</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-09T07:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: getting all files with date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310452#M66959</link>
      <description>&lt;P&gt;thank you all for your thoughts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i am still wonder if we have any script or program already written to take care of&amp;nbsp;it for incstance says - sas eg temp session which has active PID and if that session is staying there from long time - how to delete it without any manual process like with script or program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so i was trying to list all &lt;STRONG&gt;sas_work...&lt;/STRONG&gt;or &lt;STRONG&gt;sas_util...&lt;/STRONG&gt; directores and try to delete it with OS cmd (by sas program - by making rm dir cmd and executing it with filevar) - if anything is in use - won't delete and if something has left b/h - it would cleared it...&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 17:15:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/310452#M66959</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2016-11-09T17:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: getting all files with date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/598747#M172700</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*MACRO TO GET ALL FILE NAMES AND DETAILS WITHIN A DIRECTORY*/
	%MACRO GET_FILE_NAMES(FILE_DIR	,COMMON_FILE_NAME ,FILE_FORMAT	,DATA_OUT);

		FILENAME LS PIPE "dir &amp;amp;FILE_DIR.&amp;amp;COMMON_FILE_NAME.*.&amp;amp;FILE_FORMAT.";
		DATA FILE_NAMES (KEEP=LIST_FILE); 
			INFILE LS PAD TRUNCOVER EXPANDTABS ; 
			INPUT FILE_NAMES $10000.;
			LIST_FILE = COMPRESS('"'||FILE_NAMES||'"');
		RUN;
		PROC SQL;	SELECT LIST_FILE 	AS LIST_FILE		INTO:	LIST_FILE_1 - 		FROM FILE_NAMES; QUIT;
		PROC SQL; 	SELECT COUNT(*) 	AS NUM_OF_SEARCHES	INTO: 	NUM_OF_SEARCHES		FROM FILE_NAMES;	QUIT;

		%DO Z = 1 %TO &amp;amp;NUM_OF_SEARCHES.;
			DATA RAW_WANT;			
				FILENAME LISA &amp;amp;&amp;amp;LIST_FILE_&amp;amp;Z..; 
				INFILE LISA TRUNCOVER ;
				FORMAT FILE_NAME $20000.;
				FILE_NAME 	= 	&amp;amp;&amp;amp;LIST_FILE_&amp;amp;Z..;
				FLIE_SIZE	=	FINFO(FOPEN('LISA') 		,'FILE SIZE (BYTES)');
				FORMAT MOD_DATE DATETIME.;
   				MOD_DATE	=	INPUT(FINFO(FOPEN('LISA')	,'LAST MODIFIED'), DATETIME.);     
   			    RIGHTS		=	FINFO(FOPEN('LISA')			,'ACCESS PERMISSION');      
		 		OWNER		=	FINFO(FOPEN('LISA')			,'OWNER NAME');      
			RUN;

			PROC APPEND DATA = RAW_WANT BASE = WANT_1 FORCE; RUN;
		%END;
		DATA &amp;amp;DATA_OUT.; 	SET WANT_1; 		RUN;
		PROC DATASETS;		DELETE WANT_1 RAW_WANT FILE_NAMES;	RUN;
	%MEND GET_FILE_NAMES;

/*INPUT PARAMETERS HERE*/
	%GET_FILE_NAMES (FILE_DIR  			= \Users\abc\Desktop\ 		/* SPECIFY THE DIRECTORY LOCATION HERE*/
				   , COMMON_FILE_NAME 	= HAVE_NAME     			/* FILE COMMON NAME, YOU CAN PUT "*" HERE TO SELECT ALL FILE NAMES*/
				   , FILE_FORMAT 		= txt 						/* FILE FORMAT,  YOU CAN PUT "*" HERE TO SELECT ALL FILE FORMATS WITHIN THE DIRECTORY*/
				   , DATA_OUT			= WANT);		   			&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Oct 2019 15:28:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/598747#M172700</guid>
      <dc:creator>NiyiAwe1</dc:creator>
      <dc:date>2019-10-23T15:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: getting all files with date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/598833#M172735</link>
      <description>&lt;P&gt;Are you really trying to delete data -or even kill sessions- of users that have an *active* EG session?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why on earth would you do this?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 20:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-all-files-with-date-and-time-stamp/m-p/598833#M172735</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-10-23T20:40:20Z</dc:date>
    </item>
  </channel>
</rss>

