<?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: How to Compress a SAS dataset and Extract and Open in Windows in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693426#M211426</link>
    <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;We are using SAS Enterprise Guide Version 7.15Hf8.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;EG is just a dumb front-end client. It's the SAS version that matters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2020 08:17:05 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-10-22T08:17:05Z</dc:date>
    <item>
      <title>How to Compress a SAS dataset and Extract and Open in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693358#M211387</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to export&amp;nbsp; a SAS dataset (approx. 12Gb) that I already converted to a CSV file format . I compressed the file so I can FTP to our vendor . Our FTP will only transmit if the file size is less the 5GB. I compressed the file&amp;nbsp;in SAS (reduced to approx.4GB) &amp;nbsp;and use COPY FILES option to export to Windows. However, when I tried to extract and open the zip file I copied to Windows , I cannot open and it is giving me an error: "Windows cannot complete extraction . the destination file could not be created". I used to do this routin with smaller file size and was able to open the compressed file. Greatly appreciate your assistance . Thank you as always!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 1 . Convert to csv&lt;/P&gt;
&lt;PRE&gt;proc export data= Claimsfile outfile="%sysfunc(pathname(WORK))/Claimsfile.csv" dbms=csv replace;run;&lt;/PRE&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;Step 2: Compress CSV file&lt;/P&gt;
&lt;PRE&gt;ods package(zipout) open nopf;
ods package(zipout)
	add file="%sysfunc(pathname(WORK))/claimsfile.csv";
ods package(zipout) 
	publish archive properties 
	(archive_name="claimsfile.zip"
	archive_path="%sysfunc(pathname(WORK))");
ods package(zipout) close;&lt;/PRE&gt;
&lt;P&gt;Step : 3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Use Task-&amp;gt;Data-Copy Files&amp;nbsp; to export from Unix to Windows.&lt;/P&gt;
&lt;DIV id="tinyMceEditorlmtamina_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 01:16:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693358#M211387</guid>
      <dc:creator>lmtamina</dc:creator>
      <dc:date>2020-10-22T01:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compress a SAS dataset and Extract and Open in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693364#M211391</link>
      <description>&lt;P&gt;The error seems to pertain to the file created. Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;CODE class=" language-sas"&gt;filename CSV "%sysfunc(pathname(WORK))/claimsfile.csv";

proc export data=SASHELP.CLASS outfile=CSV dbms=csv replace;run;

ods package(zipout) open nopf;
ods package(zipout) add file=CSV path="/";
ods package(zipout) 
	publish archive properties 
	(archive_name="claimsfile.zip"
	archive_path="%sysfunc(pathname(WORK))");
ods package(zipout) close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 02:08:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693364#M211391</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-10-22T02:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compress a SAS dataset and Extract and Open in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693365#M211392</link>
      <description>&lt;P&gt;Are the file sizes the same on both hosts?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 02:08:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693365#M211392</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-10-22T02:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compress a SAS dataset and Extract and Open in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693368#M211393</link>
      <description>&lt;P&gt;Make sure to copy the file zip file as BINARY.&lt;/P&gt;
&lt;P&gt;Is the issue that the file it too large for your target machine?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why not just use the ZIP engine?&amp;nbsp; I would use the GZIP option if there is just one file to send.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename csv zip "%sysfunc(pathname(WORK))/Claimsfile.csv.gz" gzip lrecl=1000000 ;

proc export data= Claimsfile outfile=csv dbms=csv replace;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then it is easy to read on the other side.&amp;nbsp; Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename csv zip "c:\downloads\Claimsfile.csv.gz" gzip lrecl=1000000 ;
data claimsfile ;
  infile csv dsd truncover firstobs=2;
  input var1 .... ;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 02:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693368#M211393</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-10-22T02:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compress a SAS dataset and Extract and Open in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693372#M211395</link>
      <description>&lt;P&gt;What SAS 9.4 maintenance release are you on? ODS has matured a lot over the 9.4 maintenance releases. If you are using an earlier one like M1 - M3 that could cause issues. For the size of file&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;'s FILENAME alternative is a better option.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 02:52:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693372#M211395</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-10-22T02:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compress a SAS dataset and Extract and Open in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693373#M211396</link>
      <description>&lt;P&gt;Thank you . I tried this solution and was able to unzip the file. This solution work . Just wondering why my original code did not work when I used this before.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also. I am trying to send 18 of these SAS datasets&amp;nbsp;with approx. 12 GB each uncompressed, and approx. 4GB compressed&amp;nbsp; in csv format. IS there a more efficient way to convert to csv , then compress and export from SAS to Windows. I have been trying to this steps for each file ( i.e convert to csv , compress the file, export to Windows) one by one. Very manual and time consuming. I only know basic SAS programming and not a heavy programmer. Appreciate any advice.&lt;/P&gt;
&lt;P&gt;Thank you again for this solution but would love how to automate processing the remaining 17 files. Appreciate your expertise.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 02:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693373#M211396</guid>
      <dc:creator>lmtamina</dc:creator>
      <dc:date>2020-10-22T02:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compress a SAS dataset and Extract and Open in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693374#M211397</link>
      <description>&lt;P&gt;&amp;nbsp;I am trying to send 18 of these SAS datasets&amp;nbsp;with approx. 12 GB each uncompressed, and approx. 4GB compressed&amp;nbsp; in csv format. Is there a more efficient way to convert to csv , then compress and export from SAS to Windows. I have been trying to&amp;nbsp;do these steps for each file ( i.e. convert to csv , compress the file, export to Windows) one by one. Very manual and time consuming. I only know basic SAS programming and not a heavy programmer. Appreciate any advice. Appreciate a solution&amp;nbsp; that would&amp;nbsp;automate processing the remaining 17 files. Appreciate your expertise.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 03:00:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693374#M211397</guid>
      <dc:creator>lmtamina</dc:creator>
      <dc:date>2020-10-22T03:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compress a SAS dataset and Extract and Open in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693375#M211398</link>
      <description>&lt;P&gt;We are using SAS Enterprise Guide Version 7.15Hf8. I used to be able to use my original code before and no problem. It's been quite awhile though when I&amp;nbsp; used it.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 03:03:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693375#M211398</guid>
      <dc:creator>lmtamina</dc:creator>
      <dc:date>2020-10-22T03:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compress a SAS dataset and Extract and Open in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693377#M211399</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp; I tried the GZIP option and it appears my SAS EG version does not support this. Also, I am tryin gto send 18 of these datasets. Appreciate a more efficient soltuion to send the remaing 17 files . Doin git one by one (i.e. converting to csv, zipping and exporting to Windows) is very time consuming . Apprecaite your expertise. Thank you.&lt;/P&gt;
&lt;PRE&gt;        ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
24         
25         GOPTIONS ACCESSIBLE;
26         filename csv zip "%sysfunc(pathname(WORK))/MedClaims_2017_6.csv.gz" gzip lrecl=1000000 ;
                                                                               ____
                                                                               23
ERROR: Error in the FILENAME statement.
ERROR 23-2: Invalid option name gzip.

27         
28         GOPTIONS NOACCESSIBLE;
29         %LET _CLIENTTASKLABEL=;
30         %LET _CLIENTPROCESSFLOWNAME=;
31         %LET _CLIENTPROJECTPATH=;
32         %LET _CLIENTPROJECTPATHHOST=;
33         %LET _CLIENTPROJECTNAME=;
34         %LET _SASPROGRAMFILE=;
35         %LET _SASPROGRAMFILEHOST=;
36         
37         ;*';*";*/;quit;run;
38         ODS _ALL_ CLOSE;
39         
40         
41         QUIT; RUN;
42         &lt;/PRE&gt;
&lt;P&gt;usong the gzip command , and I am getting an error.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 03:20:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693377#M211399</guid>
      <dc:creator>lmtamina</dc:creator>
      <dc:date>2020-10-22T03:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compress a SAS dataset and Extract and Open in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693396#M211409</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/187028"&gt;@lmtamina&lt;/a&gt;&amp;nbsp; - That's the EG version, not the SAS version. Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put SAS release: &amp;amp;sysvlong;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Oct 2020 06:10:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693396#M211409</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-10-22T06:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compress a SAS dataset and Extract and Open in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693424#M211424</link>
      <description>&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;Just wondering why my original code did not work when I used this before.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;My guess is that the slash was used by Windows, and that's an illegal file name character under Windows.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 08:15:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693424#M211424</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-10-22T08:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compress a SAS dataset and Extract and Open in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693426#M211426</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;We are using SAS Enterprise Guide Version 7.15Hf8.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;EG is just a dumb front-end client. It's the SAS version that matters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 08:17:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693426#M211426</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-10-22T08:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compress a SAS dataset and Extract and Open in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693442#M211439</link>
      <description>&lt;P&gt;Please run this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;=sysvlong;
%put &amp;amp;=syshostinfolong;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and post the log; I suspect your SAS runs on Windows, where the gzip option is not available.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 09:27:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693442#M211439</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-22T09:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compress a SAS dataset and Extract and Open in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693477#M211451</link>
      <description>&lt;P&gt;You seem to be at some intermediate SAS version where ZIP engine works but the GZIP enhancement has not been added.&amp;nbsp; So just adjust the syntax to deal with that.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename csv zip "%sysfunc(pathname(WORK))/Download_2017_6.zip" 
   member="Claims.csv"  lrecl=1000000 
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now if you want you could store all 18 CSV files in the same ZIP file by just changing the MEMBER= option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 12:24:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693477#M211451</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-10-22T12:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compress a SAS dataset and Extract and Open in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693482#M211455</link>
      <description>&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;Below is the log for the SAS version.&lt;/P&gt;
&lt;PRE&gt;                                                    The SAS System                           08:26 Thursday, October 22, 2020

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Program';
4          %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5          %LET _CLIENTPROJECTPATH='U:\999_CVOTM_SAS\SAS_Programs\zip_file_on_sas_server_before_ftp.egp';
6          %LET _CLIENTPROJECTPATHHOST='WKPC0WQLWR';
7          %LET _CLIENTPROJECTNAME='zip_file_on_sas_server_before_ftp.egp';
8          %LET _SASPROGRAMFILE='';
9          %LET _SASPROGRAMFILEHOST='';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=PNG;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         FILENAME EGSR TEMP;
15         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
16             STYLE=HTMLBlue
17             STYLESHEET=(URL="file:///C:/Program%20Files%20(x86)/SASHome/x86/SASEnterpriseGuide/7.1/Styles/HTMLBlue.css")
18             NOGTITLE
19             NOGFOOTNOTE
20             GPATH=&amp;amp;sasworklocation
21             ENCODING=UTF8
22             options(rolap="on")
23         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
24         
25         GOPTIONS ACCESSIBLE;
26         
27         %put SAS release:&amp;amp;sysvlong;
SAS release:9.04.01M3P062415
28         
29         GOPTIONS NOACCESSIBLE;
30         %LET _CLIENTTASKLABEL=;
31         %LET _CLIENTPROCESSFLOWNAME=;
32         %LET _CLIENTPROJECTPATH=;
33         %LET _CLIENTPROJECTPATHHOST=;
34         %LET _CLIENTPROJECTNAME=;
35         %LET _SASPROGRAMFILE=;
36         %LET _SASPROGRAMFILEHOST=;
37         
38         ;*';*";*/;quit;run;
39         ODS _ALL_ CLOSE;
40         
41         
42         QUIT; RUN;
43         
&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Oct 2020 12:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693482#M211455</guid>
      <dc:creator>lmtamina</dc:creator>
      <dc:date>2020-10-22T12:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compress a SAS dataset and Extract and Open in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693489#M211459</link>
      <description>@&lt;BR /&gt;Accept as Solution &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Highlighted&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Unforunately I cannot store all 18 files into 1 zip as each has file  is already  approx 4Gb(compressed). We are seniding these files to our vendor via SFTP and it will only transmit file with less than 5GB . I was just hoping there is a more efficient way to convert to csv, zip the csv, and copy to Windows. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Oct 2020 12:53:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693489#M211459</guid>
      <dc:creator>lmtamina</dc:creator>
      <dc:date>2020-10-22T12:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compress a SAS dataset and Extract and Open in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693588#M211513</link>
      <description>&lt;P&gt;You are using SAS 9.4 M3.which is about five years old. The latest is M7. A more recent release will likely work better for ODS. In my experience ODS uses a lot of computer resources and doesn't scale well for large datasets. This mirrors your experience of working OK for small datasets but not for large ones.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might want to raise a track with SAS Tech Support to see if they can provide further guidance.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 18:49:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693588#M211513</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-10-22T18:49:42Z</dc:date>
    </item>
    <item>
      <title>have you tired Re: How to Compress a SAS dataset and Extract and Open in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693648#M211547</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;I was just hoping there is a more efficient way&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;1. Have you tried this as suggested?&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename CSV zip "%sysfunc(pathname(WORK))/file.zip" member="file.csv" lrecl=1000000; 
proc export data=SASHELP.CLASS dbms=csv outfile=CSV replace; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;2. SAS can send to SFTP, why do you go through Windows?&lt;/P&gt;
&lt;P&gt;3. You could automate the transfer to Windows if you had a samba drive on the unix machine. Or create a task on EG.&lt;/P&gt;
&lt;P&gt;Sadly SAS has killed its desktop client by pushing a dumb and free EG client to all its customers, so that's the only 2 options you have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 03:34:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693648#M211547</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-10-23T03:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Compress a SAS dataset and Extract and Open in Windows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693928#M211605</link>
      <description>1) I tried your recommendation above and use the SAS ZIP option above. I tried opening the ZIP file in WIndows and now getting another error :&lt;BR /&gt;&lt;BR /&gt;"1 Interrupted Action&lt;BR /&gt;An unexpected error is keeping from copying the file. If you continue to receive this error, you can use the error code to search for help with this problem.&lt;BR /&gt;Error 0x80004005: Unspecified Error"&lt;BR /&gt;&lt;BR /&gt;What is interesting is I notice if the files size is smaller (ex.: less than 1 GB) there is no error and able to extract the zip in WIndows. However, if the file is approx. 4GB , it gives out this error.&lt;BR /&gt;&lt;BR /&gt;We are now trying to ZIP directly in  WIndows .We initially used zip in SAS  as we found it faster than ZIP in Windows.&lt;BR /&gt;&lt;BR /&gt;2)   I am going through Windows to FTP as I do not have the expertise to use SFTP in SAS.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Oct 2020 21:13:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Compress-a-SAS-dataset-and-Extract-and-Open-in-Windows/m-p/693928#M211605</guid>
      <dc:creator>lmtamina</dc:creator>
      <dc:date>2020-10-23T21:13:43Z</dc:date>
    </item>
  </channel>
</rss>

