<?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: sas, zip large data sets, save space on unix server in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/sas-zip-large-data-sets-save-space-on-unix-server/m-p/510834#M2035</link>
    <description>Are you already using the SAS Compress option?</description>
    <pubDate>Tue, 06 Nov 2018 17:29:45 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-11-06T17:29:45Z</dc:date>
    <item>
      <title>sas, zip large data sets, save space on unix server</title>
      <link>https://communities.sas.com/t5/New-SAS-User/sas-zip-large-data-sets-save-space-on-unix-server/m-p/510827#M2032</link>
      <description>&lt;P&gt;What are the best ways to zip SAS data sets? Below is the code that I have tried using SAS and Putty. In SAS, I did not get a log saying this was successful or not. I did get an ! exclamation point. In Putty, I also did not get any message if successful or not. What are the best and fastest ways to zip large data sets in SAS or Putty? Also, is there a way to do multiple data sets at once? Also, I think a log would be nice as well. Thank you!&lt;/P&gt;&lt;P&gt;SAS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Removed&lt;/PRE&gt;&lt;P&gt;Putty Unix&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Removed&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Apr 2019 15:44:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/sas-zip-large-data-sets-save-space-on-unix-server/m-p/510827#M2032</guid>
      <dc:creator>user112a2</dc:creator>
      <dc:date>2019-04-26T15:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: sas, zip large data sets, save space on unix server</title>
      <link>https://communities.sas.com/t5/New-SAS-User/sas-zip-large-data-sets-save-space-on-unix-server/m-p/510830#M2033</link>
      <description>&lt;P&gt;this is one way I do some zipping&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%macro zipit;
ods package(zip) open nopf;
		proc sql;
			create table sasds as
			select *
			from dictionary.tables
			where libname = 'WORK';
		quit;
		option nonotes;
		%do %while (&amp;amp;sysnobs &amp;gt; 0);
			data sasds;
				set sasds;
				if _N_ = 1 then call symputx('FN',memname);
				else output;
			run;
			%put Archive %sysfunc(PATHNAME(mysas))\&amp;amp;fn..sas7bdat;
			ods package(zip) add file="%sysfunc(PATHNAME(WORK))\&amp;amp;fn..sas7bdat";
		%end;
		option notes;
		ods package(zip) 
		publish archive
		properties (archive_name = "WORK.zip"
				archive_path = "\\&amp;amp;mypath.");
		ods package(zip) close;
%mend zipit;
%zipit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Nov 2018 17:22:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/sas-zip-large-data-sets-save-space-on-unix-server/m-p/510830#M2033</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-11-06T17:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: sas, zip large data sets, save space on unix server</title>
      <link>https://communities.sas.com/t5/New-SAS-User/sas-zip-large-data-sets-save-space-on-unix-server/m-p/510834#M2035</link>
      <description>Are you already using the SAS Compress option?</description>
      <pubDate>Tue, 06 Nov 2018 17:29:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/sas-zip-large-data-sets-save-space-on-unix-server/m-p/510834#M2035</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-06T17:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: sas, zip large data sets, save space on unix server</title>
      <link>https://communities.sas.com/t5/New-SAS-User/sas-zip-large-data-sets-save-space-on-unix-server/m-p/510836#M2036</link>
      <description>&lt;P&gt;yes I do compress prior to zipping.&amp;nbsp; the zipping files I do pack lots of datasets into one file for archiving.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 17:31:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/sas-zip-large-data-sets-save-space-on-unix-server/m-p/510836#M2036</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-11-06T17:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: sas, zip large data sets, save space on unix server</title>
      <link>https://communities.sas.com/t5/New-SAS-User/sas-zip-large-data-sets-save-space-on-unix-server/m-p/510838#M2037</link>
      <description>&lt;P&gt;gzip accepts a list of filenames on the commandline.&lt;/P&gt;
&lt;P&gt;To see output of external commands in the SAS log, do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename oscmd pipe "gzip filenames 2&amp;gt;&amp;amp;1";

data _null_;
infile oscmd;
input;
put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you count the input lines, you can check for success; gzip will return no output if it succeeded completely.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 17:34:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/sas-zip-large-data-sets-save-space-on-unix-server/m-p/510838#M2037</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-11-06T17:34:55Z</dc:date>
    </item>
  </channel>
</rss>

