<?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 How to zip a complete folder from SAS with 7Zip in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-zip-a-complete-folder-from-SAS-with-7Zip/m-p/694633#M211849</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;7Zip is installed on my SAS BI server, which is great because we have to zip with encryption.&lt;/P&gt;&lt;P&gt;I've read somewhere on this platform how to zip a single file and this works :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;zipexe='"&amp;lt;path to 7zip executable&amp;gt;\7z.exe" a -tzip -pPASSWORD';&lt;BR /&gt;zipfile="&amp;lt;zip target path&amp;gt;\&amp;lt;zipfile&amp;gt;.zip";&lt;BR /&gt;file="&amp;lt;zip source path&amp;gt;\&amp;lt;file to be zipped&amp;gt;.&amp;lt;extension&amp;gt;";&lt;BR /&gt;cmd = zipexe ||' "'|| zipfile ||'" "'|| file ||'"' ;&lt;BR /&gt;call system(cmd);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to zip a whole folder by googling for command lines for 7zip but was not successful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody knows how to do this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;RGDS&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Oct 2020 17:19:06 GMT</pubDate>
    <dc:creator>Billybob73</dc:creator>
    <dc:date>2020-10-27T17:19:06Z</dc:date>
    <item>
      <title>How to zip a complete folder from SAS with 7Zip</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-zip-a-complete-folder-from-SAS-with-7Zip/m-p/694633#M211849</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;7Zip is installed on my SAS BI server, which is great because we have to zip with encryption.&lt;/P&gt;&lt;P&gt;I've read somewhere on this platform how to zip a single file and this works :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;zipexe='"&amp;lt;path to 7zip executable&amp;gt;\7z.exe" a -tzip -pPASSWORD';&lt;BR /&gt;zipfile="&amp;lt;zip target path&amp;gt;\&amp;lt;zipfile&amp;gt;.zip";&lt;BR /&gt;file="&amp;lt;zip source path&amp;gt;\&amp;lt;file to be zipped&amp;gt;.&amp;lt;extension&amp;gt;";&lt;BR /&gt;cmd = zipexe ||' "'|| zipfile ||'" "'|| file ||'"' ;&lt;BR /&gt;call system(cmd);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to zip a whole folder by googling for command lines for 7zip but was not successful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody knows how to do this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;RGDS&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 17:19:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-zip-a-complete-folder-from-SAS-with-7Zip/m-p/694633#M211849</guid>
      <dc:creator>Billybob73</dc:creator>
      <dc:date>2020-10-27T17:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to zip a complete folder from SAS with 7Zip</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-zip-a-complete-folder-from-SAS-with-7Zip/m-p/694676#M211863</link>
      <description>&lt;P&gt;First of all, test your commandline from a cmd window outside of SAS.&lt;/P&gt;
&lt;P&gt;Then, run it from SAS with a FILENAME PIPE:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename oscmd pipe "your complete command 2&amp;gt;&amp;amp;1";

data _null_;
infile oscmd;
input;
put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;then look at your log, you will find all responses from the system.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 20:33:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-zip-a-complete-folder-from-SAS-with-7Zip/m-p/694676#M211863</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-27T20:33:16Z</dc:date>
    </item>
  </channel>
</rss>

