<?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: Create Zip for all the xls files available in the directory in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Create-Zip-for-all-the-xls-files-available-in-the-directory/m-p/393793#M19267</link>
    <description>&lt;P&gt;So what doesn't work with that? &amp;nbsp;I can't run it as there are dependancies I don't have. &amp;nbsp; The logic looks ok, if need be check out one of the many examples, for instance:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/45/256.html" target="_blank"&gt;http://support.sas.com/kb/45/256.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;And come back with exact questions.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2017 09:01:04 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-09-07T09:01:04Z</dc:date>
    <item>
      <title>Create Zip for all the xls files available in the directory</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Create-Zip-for-all-the-xls-files-available-in-the-directory/m-p/393773#M19265</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have, let's say, 10 xls files exported from sas with today's date in a particular directory. And I want to zip those files.&amp;nbsp;I have exported those xls files using ods tagsets.ExcelXP and I am using SAS 9.2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the below code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let subdir = C:\Report1;&lt;BR /&gt;filename dir "&amp;amp;subdir.*.xls ";&lt;/P&gt;&lt;P&gt;ods package(ProdOutput) open nopf;&lt;BR /&gt;ods package(ProdOutput)&lt;BR /&gt;add file="dir";&lt;BR /&gt;ods package(ProdOutput)&lt;BR /&gt;publish archive&lt;BR /&gt;properties&lt;BR /&gt;(archive_name=&lt;BR /&gt;"Report1 - Dt.&amp;amp;date1..zip"&lt;BR /&gt;archive_path="C:\Report1");&lt;BR /&gt;ods package(ProdOutput) close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the above approach is not correct, then could you let me know the correct way to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikrant&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 07:30:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Create-Zip-for-all-the-xls-files-available-in-the-directory/m-p/393773#M19265</guid>
      <dc:creator>VikrantSawatkar</dc:creator>
      <dc:date>2017-09-07T07:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create Zip for all the xls files available in the directory</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Create-Zip-for-all-the-xls-files-available-in-the-directory/m-p/393793#M19267</link>
      <description>&lt;P&gt;So what doesn't work with that? &amp;nbsp;I can't run it as there are dependancies I don't have. &amp;nbsp; The logic looks ok, if need be check out one of the many examples, for instance:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/45/256.html" target="_blank"&gt;http://support.sas.com/kb/45/256.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;And come back with exact questions.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 09:01:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Create-Zip-for-all-the-xls-files-available-in-the-directory/m-p/393793#M19267</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-09-07T09:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create Zip for all the xls files available in the directory</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Create-Zip-for-all-the-xls-files-available-in-the-directory/m-p/393898#M19273</link>
      <description>&lt;P&gt;I don't know if SAS 9.2 had support for these features, that would be my biggest concern. Some are definitely new in SAS 9.3&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 14:46:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Create-Zip-for-all-the-xls-files-available-in-the-directory/m-p/393898#M19273</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-07T14:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create Zip for all the xls files available in the directory</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Create-Zip-for-all-the-xls-files-available-in-the-directory/m-p/395675#M19347</link>
      <description>&lt;P&gt;Hi RW9,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the link. I referred it and tweak the code mentioned in it a bit. Now I am able to zip the files&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 17:58:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Create-Zip-for-all-the-xls-files-available-in-the-directory/m-p/395675#M19347</guid>
      <dc:creator>VikrantSawatkar</dc:creator>
      <dc:date>2017-09-13T17:58:35Z</dc:date>
    </item>
  </channel>
</rss>

