<?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 Returning Filenames &amp; Creation Date in a directory (i.e unix ls -l)? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Returning-Filenames-Creation-Date-in-a-directory-i-e-unix-ls-l/m-p/159807#M41655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get all the filenames (.csv) in a directory &amp;amp; want the creation date of the file, like the unix command ls -l.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can get some details using list but it wont give me the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have done:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename dir_lst ftp '' cd="&amp;amp;EMFTDIR" list&amp;nbsp; user=&amp;amp;qemftname host="&amp;amp;host" pass= &amp;amp;qemftpwd;&lt;/P&gt;&lt;P&gt;data files_list;&amp;nbsp;&amp;nbsp; attrib a b c d e f g h i&amp;nbsp; length=$30;&amp;nbsp; &lt;/P&gt;&lt;P&gt;infile dir_lst dlm=' ' firstobs=1;&amp;nbsp; &lt;/P&gt;&lt;P&gt;input a b c d e f g h i ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something else I can use to return the filename &amp;amp; creation date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Feb 2014 19:25:09 GMT</pubDate>
    <dc:creator>jammy</dc:creator>
    <dc:date>2014-02-02T19:25:09Z</dc:date>
    <item>
      <title>Returning Filenames &amp; Creation Date in a directory (i.e unix ls -l)?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Returning-Filenames-Creation-Date-in-a-directory-i-e-unix-ls-l/m-p/159807#M41655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get all the filenames (.csv) in a directory &amp;amp; want the creation date of the file, like the unix command ls -l.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can get some details using list but it wont give me the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have done:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename dir_lst ftp '' cd="&amp;amp;EMFTDIR" list&amp;nbsp; user=&amp;amp;qemftname host="&amp;amp;host" pass= &amp;amp;qemftpwd;&lt;/P&gt;&lt;P&gt;data files_list;&amp;nbsp;&amp;nbsp; attrib a b c d e f g h i&amp;nbsp; length=$30;&amp;nbsp; &lt;/P&gt;&lt;P&gt;infile dir_lst dlm=' ' firstobs=1;&amp;nbsp; &lt;/P&gt;&lt;P&gt;input a b c d e f g h i ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something else I can use to return the filename &amp;amp; creation date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2014 19:25:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Returning-Filenames-Creation-Date-in-a-directory-i-e-unix-ls-l/m-p/159807#M41655</guid>
      <dc:creator>jammy</dc:creator>
      <dc:date>2014-02-02T19:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Returning Filenames &amp; Creation Date in a directory (i.e unix ls -l)?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Returning-Filenames-Creation-Date-in-a-directory-i-e-unix-ls-l/m-p/159808#M41656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you need tio use ftp?&lt;/P&gt;&lt;P&gt;You could use a remote shell/telnet and filename pipe, or pipe to a temporary file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2014 21:00:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Returning-Filenames-Creation-Date-in-a-directory-i-e-unix-ls-l/m-p/159808#M41656</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-02-02T21:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Returning Filenames &amp; Creation Date in a directory (i.e unix ls -l)?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Returning-Filenames-Creation-Date-in-a-directory-i-e-unix-ls-l/m-p/159809#M41657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think so, as I'm using EG &amp;amp; need to read a directory not on a SAS server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2014 21:17:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Returning-Filenames-Creation-Date-in-a-directory-i-e-unix-ls-l/m-p/159809#M41657</guid>
      <dc:creator>jammy</dc:creator>
      <dc:date>2014-02-02T21:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Returning Filenames &amp; Creation Date in a directory (i.e unix ls -l)?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Returning-Filenames-Creation-Date-in-a-directory-i-e-unix-ls-l/m-p/159810#M41658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The format returned by the LIST command usually depends on the host that you have connected to.&lt;/P&gt;&lt;P&gt;If you use ls -l on Unix then for files created within the last 6 months it does not return the year, instead it uses that space on the line to display the time.&lt;/P&gt;&lt;P&gt;Perhaps your FTP server is working the same way?&lt;/P&gt;&lt;P&gt;You can figure out the year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 05:03:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Returning-Filenames-Creation-Date-in-a-directory-i-e-unix-ls-l/m-p/159810#M41658</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-02-03T05:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Returning Filenames &amp; Creation Date in a directory (i.e unix ls -l)?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Returning-Filenames-Creation-Date-in-a-directory-i-e-unix-ls-l/m-p/159811#M41659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Tom, that's right - I was wondering why my new files had a time &amp;amp; some had the year (need to brush up on Unix)!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've just coded round it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 19:11:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Returning-Filenames-Creation-Date-in-a-directory-i-e-unix-ls-l/m-p/159811#M41659</guid>
      <dc:creator>jammy</dc:creator>
      <dc:date>2014-02-03T19:11:02Z</dc:date>
    </item>
  </channel>
</rss>

