<?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: gzip with partial filename ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/gzip-with-partial-filename/m-p/571977#M161387</link>
    <description>&lt;P&gt;What failed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you already tried to execute the command directly out of a command prompt ("putty").&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And last but not least:&lt;/P&gt;
&lt;P&gt;I normally prefer to execute such commands via a Filename Pipe as this allows to capture the messages from the shell and write it back to the SAS log.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2019 08:37:53 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2019-07-09T08:37:53Z</dc:date>
    <item>
      <title>gzip with partial filename ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/gzip-with-partial-filename/m-p/571972#M161386</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I can gzip file in SAS using below method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x gzip "/&amp;amp;path./Report20190701_20190705.txt";&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But instead of using full&amp;nbsp;filename--&amp;gt; &lt;FONT face="arial black,avant garde"&gt;&lt;CODE class=" language-sas"&gt;&lt;FONT face="arial black,avant garde"&gt;Report20190701_20190705&lt;/FONT&gt;&lt;/CODE&gt;&lt;/FONT&gt;, can I just write partial of the filename ?&lt;/P&gt;&lt;P&gt;Such as --&amp;gt;&amp;nbsp;&lt;FONT face="arial black,avant garde"&gt;Report201907*.txt&lt;/FONT&gt; ? I tested this * but failed, wondering if any other method?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wish to automate&amp;nbsp;the housekeep step in the code, to zip previous month report. However, I wouldn't know what is the filename without manually open the path and check.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample filename I will have in the path :&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;CODE class=" language-sas"&gt;Report20190606_201905030&lt;/CODE&gt;&lt;/FONT&gt;.txt&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;CODE class=" language-sas"&gt;Report20190615_20190601&lt;/CODE&gt;&lt;/FONT&gt;.txt&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;CODE class=" language-sas"&gt;Report20190626_20190613&lt;/CODE&gt;&lt;/FONT&gt;.txt&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;CODE class=" language-sas"&gt;Report20190701_20190605&lt;/CODE&gt;&lt;/FONT&gt;.txt&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;CODE class=" language-sas"&gt;Report20190707_20190623&lt;/CODE&gt;&lt;/FONT&gt;.txt&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;CODE class=" language-sas"&gt;Report20190718_20190704&lt;/CODE&gt;&lt;/FONT&gt;.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If possible, everytime I run the code, I would like to zip previous month file, which are all file start with Report201906xxxxxxx&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 08:22:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/gzip-with-partial-filename/m-p/571972#M161386</guid>
      <dc:creator>Gpp</dc:creator>
      <dc:date>2019-07-09T08:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: gzip with partial filename ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/gzip-with-partial-filename/m-p/571977#M161387</link>
      <description>&lt;P&gt;What failed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you already tried to execute the command directly out of a command prompt ("putty").&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And last but not least:&lt;/P&gt;
&lt;P&gt;I normally prefer to execute such commands via a Filename Pipe as this allows to capture the messages from the shell and write it back to the SAS log.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 08:37:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/gzip-with-partial-filename/m-p/571977#M161387</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-07-09T08:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: gzip with partial filename ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/gzip-with-partial-filename/m-p/571981#M161388</link>
      <description>&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried &lt;FONT color="#0000e6" size="2"&gt;X&lt;/FONT&gt;&lt;FONT size="2"&gt; gzip &lt;/FONT&gt;&lt;FONT color="#800080" size="2"&gt;"/&amp;amp;path./Report201905*.txt"&lt;/FONT&gt;&lt;FONT size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;But the file didnt zip, &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;when I use &lt;FONT color="#0000e6" size="2"&gt;X&lt;/FONT&gt; gzip &lt;FONT color="#800080" size="2"&gt;"/&amp;amp;path./Report20190501_20190524.txt"&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Then the file will be zipped.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;May I know what is filename pipe? thanks.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 08:51:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/gzip-with-partial-filename/m-p/571981#M161388</guid>
      <dc:creator>Gpp</dc:creator>
      <dc:date>2019-07-09T08:51:02Z</dc:date>
    </item>
  </channel>
</rss>

