<?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 zip textfiles using winzip in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/zip-textfiles-using-winzip/m-p/146170#M38817</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;Read a lot of solution how to read testfiles from a zip-file.&lt;/P&gt;&lt;P&gt;I want to zip testfiles from a specifik folder to an compressed folder. But not all files in that folder, want to use the timestamp on the files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex in the folder: C:\logg\SASLogg&lt;/P&gt;&lt;P&gt;i have those files:&lt;/P&gt;&lt;P&gt;898989_242260_26SEP14.log&lt;/P&gt;&lt;P&gt;898989_242538_27OCT14.log&lt;/P&gt;&lt;P&gt;898989_242890_28NOV14.log&lt;/P&gt;&lt;P&gt;898989_242890_11DEC14.log&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to use todays date and compress all files that is older than 7 Days alt or only the files that is 7 Days old.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some one that have any ide how the SAS-code should look like?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2014 12:06:18 GMT</pubDate>
    <dc:creator>janne_swe</dc:creator>
    <dc:date>2014-12-11T12:06:18Z</dc:date>
    <item>
      <title>zip textfiles using winzip</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/zip-textfiles-using-winzip/m-p/146170#M38817</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;Read a lot of solution how to read testfiles from a zip-file.&lt;/P&gt;&lt;P&gt;I want to zip testfiles from a specifik folder to an compressed folder. But not all files in that folder, want to use the timestamp on the files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex in the folder: C:\logg\SASLogg&lt;/P&gt;&lt;P&gt;i have those files:&lt;/P&gt;&lt;P&gt;898989_242260_26SEP14.log&lt;/P&gt;&lt;P&gt;898989_242538_27OCT14.log&lt;/P&gt;&lt;P&gt;898989_242890_28NOV14.log&lt;/P&gt;&lt;P&gt;898989_242890_11DEC14.log&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to use todays date and compress all files that is older than 7 Days alt or only the files that is 7 Days old.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some one that have any ide how the SAS-code should look like?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 12:06:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/zip-textfiles-using-winzip/m-p/146170#M38817</guid>
      <dc:creator>janne_swe</dc:creator>
      <dc:date>2014-12-11T12:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: zip textfiles using winzip</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/zip-textfiles-using-winzip/m-p/146171#M38818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;#Bump#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No one that has any ide how to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 06:55:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/zip-textfiles-using-winzip/m-p/146171#M38818</guid>
      <dc:creator>janne_swe</dc:creator>
      <dc:date>2014-12-18T06:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: zip textfiles using winzip</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/zip-textfiles-using-winzip/m-p/146172#M38819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;filename oscmd pipe 'dir C:\logg\SASLogg';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;infile oscmd truncover;&lt;/P&gt;&lt;P&gt;format file_name $100.;&lt;/P&gt;&lt;P&gt;input;&lt;/P&gt;&lt;P&gt;file_name = scan(_infile_,1,'.');&lt;/P&gt;&lt;P&gt;file_date = input(substr(file_name,length(file_name)-6),date7.);&lt;/P&gt;&lt;P&gt;if (&lt;EM&gt;insert condition here&lt;/EM&gt;) then call system(&lt;EM&gt;insert zip command here&lt;/EM&gt;);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 07:13:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/zip-textfiles-using-winzip/m-p/146172#M38819</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-12-18T07:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: zip textfiles using winzip</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/zip-textfiles-using-winzip/m-p/146173#M38820</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;Look up ods package.&amp;nbsp; With this you can create a ZIP file and add files into it.&amp;nbsp; It doesn't require a zip app installed, or OS calls:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods package(MyPackage) open nopf;&lt;/P&gt;&lt;P&gt;ods package(MyPackage) add file="...\yourfile.log";&lt;/P&gt;&lt;P&gt;ods package(MyPackage) publish archive properties(archive_name="xyzzip" archive_path="c:\temp");&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 09:05:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/zip-textfiles-using-winzip/m-p/146173#M38820</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-12-18T09:05:16Z</dc:date>
    </item>
  </channel>
</rss>

