<?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: execute windows command in FILENAME statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/execute-windows-command-in-FILENAME-statement/m-p/607399#M176571</link>
    <description>&lt;P&gt;You are not running a windows commad. You are using SAS's FTP engine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What if you use your own Windows command to run an FTP command?&amp;nbsp; Then you can issue whatever FTP commands your want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the issue might be what the FTP server you are connecting to can actually produce.&amp;nbsp; Different FTP server implementations might offer different comamnds and options. Try connecting to the server using FTP and see what it supports.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Nov 2019 16:06:35 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-11-26T16:06:35Z</dc:date>
    <item>
      <title>execute windows command in FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-windows-command-in-FILENAME-statement/m-p/607390#M176562</link>
      <description>&lt;P&gt;I am using following sas code to read the file from the window host directory , is there any way that I can get the recently modified date and file size along with that ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename indir ftp cd= "&amp;amp;directory_window." ls user="&amp;amp;user_name_window."
host= "&amp;amp;window_host." pass="&amp;amp;password_window." debug;



data Files(where=(File_Name like "%akj%" and index(File_Name,'csv')));
infile indir;
input File_Name $300.;
put _INFILE_;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;- SAR&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 15:55:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-windows-command-in-FILENAME-statement/m-p/607390#M176562</guid>
      <dc:creator>arunrami</dc:creator>
      <dc:date>2019-11-26T15:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: execute windows command in FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/execute-windows-command-in-FILENAME-statement/m-p/607399#M176571</link>
      <description>&lt;P&gt;You are not running a windows commad. You are using SAS's FTP engine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What if you use your own Windows command to run an FTP command?&amp;nbsp; Then you can issue whatever FTP commands your want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the issue might be what the FTP server you are connecting to can actually produce.&amp;nbsp; Different FTP server implementations might offer different comamnds and options. Try connecting to the server using FTP and see what it supports.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 16:06:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/execute-windows-command-in-FILENAME-statement/m-p/607399#M176571</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-11-26T16:06:35Z</dc:date>
    </item>
  </channel>
</rss>

