<?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 Is it possible to read compressed files by PC SAS on Windows 7? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40460#M8239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems like an installation issue with your gzip under windows 7 then...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://gnuwin32.sourceforge.net/packages/gzip.htm"&gt;http://gnuwin32.sourceforge.net/packages/gzip.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also try using a different utility such as 7z, which can also work with gzip files through command line and with pipes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.7-zip.org/"&gt;http://www.7-zip.org/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jan 2012 00:12:21 GMT</pubDate>
    <dc:creator>FriedEgg</dc:creator>
    <dc:date>2012-01-31T00:12:21Z</dc:date>
    <item>
      <title>Is it possible to read compressed files by PC SAS on Windows 7?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40457#M8236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H3 class="groups"&gt;Does anybody know how to read compressed files (e.g. .GZIP) using PC SAS 9.2 TS level 2M3 on Windows 7? Of course without uncompressing... It used to work on Win XP.&amp;nbsp; Let's start with raw data files (text).&lt;/H3&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 22:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40457#M8236</guid>
      <dc:creator>Dorota_Jarosz</dc:creator>
      <dc:date>2012-01-27T22:10:26Z</dc:date>
    </item>
    <item>
      <title>Is it possible to read compressed files by PC SAS on Windows 7?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40458#M8237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may be able to uncompress, on the fly, by piping the file in your filename statement.&amp;nbsp; e.g., take a look at: &lt;A href="http://www.ats.ucla.edu/stat/sas/faq/readgz.htm"&gt;http://www.ats.ucla.edu/stat/sas/faq/readgz.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 22:20:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40458#M8237</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-01-27T22:20:14Z</dc:date>
    </item>
    <item>
      <title>Is it possible to read compressed files by PC SAS on Windows 7?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40459#M8238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We used the same piping syntax in filename stmt for five years &lt;SPAN style="font-family: Arial; color: #000000;"&gt;through thousands of programs and through two changes in operating systems.&lt;/SPAN&gt;&amp;nbsp; It stopped working after changing to Windows 7.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 23:09:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40459#M8238</guid>
      <dc:creator>Dorota_Jarosz</dc:creator>
      <dc:date>2012-01-27T23:09:40Z</dc:date>
    </item>
    <item>
      <title>Is it possible to read compressed files by PC SAS on Windows 7?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40460#M8239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems like an installation issue with your gzip under windows 7 then...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://gnuwin32.sourceforge.net/packages/gzip.htm"&gt;http://gnuwin32.sourceforge.net/packages/gzip.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also try using a different utility such as 7z, which can also work with gzip files through command line and with pipes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.7-zip.org/"&gt;http://www.7-zip.org/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 00:12:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40460#M8239</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-01-31T00:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to read compressed files by PC SAS on Windows 7?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40461#M8240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You haven't told us your complete environment, so these comments may not be applicable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Win XP (at least), piping the GZIP command produces a temporary (hidden) copy of the uncompressed data, which takes up a lot of space and disk I/O (this does not happen on *nix systems).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Windows compression gives nearly as good a compression on raw data files as GZIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two of these together means that using Windows compression (and skipping the pipe) is more efficient in Windows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------&lt;/P&gt;&lt;P&gt;Caveat:&amp;nbsp; I discovered the first one the hard way several years ago and can't currently remember which compression utility I was using.&amp;nbsp; However, my gut feeling is that it is a Window's "feature" rather than part of gzip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Lawrence Muhlbaier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 15:13:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40461#M8240</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-01-31T15:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to read compressed files by PC SAS on Windows 7?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40462#M8241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS Tech support claims it is not SAS's fault. It must be the environment or the GZIP issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the basic code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let File1="e:\John\ProductFiles\Product.out.20120115.gz"; &lt;/P&gt;&lt;P&gt;%let dir=C:\"Program Files"\GnuWin32\bin\gzip; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data Product (keep=var1 var2 var3 var4); &lt;/P&gt;&lt;P&gt;filename file2 pipe %unquote(%str(%'&amp;amp;dir -cd &amp;amp;file1%')); &lt;/P&gt;&lt;P&gt;infile file2 DSD missover; &lt;/P&gt;&lt;P&gt;length var1 $12 var2 $14 var3 $3 var4 $20; &lt;/P&gt;&lt;P&gt;input var1 var2 var3 var4; &lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 16:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40462#M8241</guid>
      <dc:creator>Dorota_Jarosz</dc:creator>
      <dc:date>2012-01-31T16:19:43Z</dc:date>
    </item>
    <item>
      <title>Is it possible to read compressed files by PC SAS on Windows 7?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40463#M8242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, the data comes as GZIP, it will be very cumbersome to convert all the files to a different utility and ask for the input in a different format.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 16:26:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40463#M8242</guid>
      <dc:creator>Dorota_Jarosz</dc:creator>
      <dc:date>2012-01-31T16:26:12Z</dc:date>
    </item>
    <item>
      <title>Is it possible to read compressed files by PC SAS on Windows 7?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40464#M8243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try setting up your command prompt enviornment first by doing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x set path=%nrstr(C:\Program Files\GnuWin32\bin;%PATH%);&lt;/P&gt;&lt;P&gt;*you may want to set the following to an alternate path as they are where the temporary files are written;&lt;/P&gt;&lt;P&gt;*by default this location is in your homedirectory, I beleive;&lt;/P&gt;&lt;P&gt;x set tmp=%TEMP%;&lt;/P&gt;&lt;P&gt;x set tmpdir=%TEMP%;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let file1=E:\John\ProductFiles\Product.out.20120115.gz;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename file2 pipe "gzip -cd &amp;amp;file1";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still experience issues in SAS try performing the same commands in windows command prompt and see if you experience similar issues or get an error message of some kind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 20:50:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40464#M8243</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-01-31T20:50:18Z</dc:date>
    </item>
    <item>
      <title>Is it possible to read compressed files by PC SAS on Windows 7?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40465#M8244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a different format.&amp;nbsp; Just a different utility program on you PC to read the same format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 21:05:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40465#M8244</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-01-31T21:05:19Z</dc:date>
    </item>
    <item>
      <title>Is it possible to read compressed files by PC SAS on Windows 7?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40466#M8245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I doubt it is the issue, but tou should move your FILENAME statement to BEFORE the data step that is trying to use it.&amp;nbsp; It is a global statement and not one that executes inside the data step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can simplify your FILENAME statement by using the QUOTE function rather than the macro quoting functions.&amp;nbsp; &lt;/P&gt;&lt;P&gt;QUOTE will surround the string in dquote (") characters and double up any dquote (") characters in your generated command so that they are passed properly to the operating system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9;"&gt;filename file2 pipe %sysfunc(quote(&amp;amp;dir -cd &amp;amp;file1));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try moving the quotes in your DIR (atually command)nacro&amp;nbsp; variable to the front and back instead of just around Program Files part of the path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open a command window on your PC and run the same command to see what it does. Try piping it to more so you can scroll through the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; "c:\Program Files\Gnu\Win32\bin\gzip" -cd "e:\John\ProductFiles\Product.out.20120115.gz" | more&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 21:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40466#M8245</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-01-31T21:17:54Z</dc:date>
    </item>
    <item>
      <title>Is it possible to read compressed files by PC SAS on Windows 7?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40467#M8246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for all your input. I really appreciate all of your answers.&amp;nbsp; Since the problem occurred not on one of SAS PCs at my location, I decided to start from scratch by loading GZIP (thanks art297 and FriedEgg!) on my Win 7 machine with the same SAS installation, but no prior history of GZIP.&amp;nbsp; Much to my surprise I succeeded to read a comma delimited file compressed by GZIP with no problems. So we will have to check the other PC regarding both the SAS and GZIP install.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comments to some hints fromTom:&lt;/P&gt;&lt;P&gt;1) Using double quotes around the %dir path and keeping embedded space in Program Files yielded an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: The infile FILE2 is:&lt;/P&gt;&lt;P&gt;Unnamed Pipe Access Device,&lt;/P&gt;&lt;P&gt;PROCESS="C:\Program Files\GnuWin32\bin\gzip" -cd "c:\curr_avail.txt.gz",&lt;/P&gt;&lt;P&gt;RECFM=V,LRECL=256&lt;/P&gt;&lt;P&gt;Stderr output:&lt;/P&gt;&lt;P&gt;'C:\Program' is not recognized as an internal or external command,&lt;/P&gt;&lt;P&gt;operable program or batch file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Moving the filename statement to above the data step did not make any difference, though I agree it is a global statement and should be moved up.&lt;/P&gt;&lt;P&gt;3) Both &lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;%unquote&lt;/SPAN&gt; and&amp;nbsp; &lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;%sysfunc &lt;/SPAN&gt;yielded correct results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I cannot replicate the general failure we'll have to test many scenarios, as FriedEgg, &lt;A href="mailto:Doc@Duc"&gt;Doc@Duc&lt;/A&gt;, and Tom suggested. Unfortunately the PC in question is at a remote site for me, so it may take longer than my own fixes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 03:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40467#M8246</guid>
      <dc:creator>Dorota_Jarosz</dc:creator>
      <dc:date>2012-02-01T03:18:05Z</dc:date>
    </item>
    <item>
      <title>Is it possible to read compressed files by PC SAS on Windows 7?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40468#M8247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, &lt;A href="mailto:Doc@Duke"&gt;Doc@Duke&lt;/A&gt;:&amp;nbsp; I may try&amp;nbsp; Windows compression directly as a separate test project, but many of my input files reside on a non-Windows server. I have to copy them to my local drive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 03:25:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40468#M8247</guid>
      <dc:creator>Dorota_Jarosz</dc:creator>
      <dc:date>2012-02-01T03:25:39Z</dc:date>
    </item>
    <item>
      <title>Is it possible to read compressed files by PC SAS on Windows 7?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40469#M8248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My apology! It turned out the PC needed a reboot after the installation of GZIP (duh!), which I did perform, but the other user did not, since the GZIP installation did not prompt for it.&lt;/P&gt;&lt;P&gt;Well, at least we now know that it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have a follow up question: is it possible to read in SAS a GZIP compressed FOLDER with several text comma delimited files? If so, what would be the syntax?&lt;/P&gt;&lt;P&gt;Actually, when I decompress one of my standard GZ files I get two folders: one with just one file, and another one with multiple files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 21:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40469#M8248</guid>
      <dc:creator>Dorota_Jarosz</dc:creator>
      <dc:date>2012-02-01T21:18:19Z</dc:date>
    </item>
    <item>
      <title>Is it possible to read compressed files by PC SAS on Windows 7?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40470#M8249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GZIP files cannot contain folder structures.&amp;nbsp; This must be a different type of archived file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 21:21:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40470#M8249</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-02-01T21:21:31Z</dc:date>
    </item>
    <item>
      <title>Is it possible to read compressed files by PC SAS on Windows 7?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40471#M8250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The filename syntax is filename.tar.gz&amp;nbsp; - I assume it is GZIP. I gather the file inside is the result of applying tar archive to bundle several files, while preserving the file system. When I decompress it, I get two folders.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 21:46:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40471#M8250</guid>
      <dc:creator>Dorota_Jarosz</dc:creator>
      <dc:date>2012-02-01T21:46:26Z</dc:date>
    </item>
    <item>
      <title>Is it possible to read compressed files by PC SAS on Windows 7?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40472#M8251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.tar.gz is more commonly know as a tarball.&amp;nbsp; It is the result of using the tar utility and gzip.&amp;nbsp; I could be incorrect but gzip alone should not be able to unpack this file, unless that is a unique feature of the program in windows vrs. unix.&amp;nbsp; I would think you would need to use an alternative application such as winzip or 7-zip to handle this file as I do not this there is a dos port for tar.&amp;nbsp; Once extracted you need to setup a program that will gather the file names from the extracted archive and then read those files.&amp;nbsp; There are plenty of examples that show how to do this around the web, including on this forum.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a link to one such paper: &lt;/P&gt;&lt;P&gt;Using FILEVAR= to read multiple external files in a DATA Step &lt;A class="active_link" href="http://support.sas.com/techsup/technote/ts581.pdf"&gt;http://support.sas.com/techsup/technote/ts581.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 22:10:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40472#M8251</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-02-01T22:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to read compressed files by PC SAS on Windows 7?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40473#M8252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to apply the code you sent but first I downloaded the Gzip: &lt;/P&gt;&lt;P&gt;&lt;A href="http://gnuwin32.sourceforge.net/packages/gzip.htm" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0e66ba; background-color: #ffffff;" title="http://gnuwin32.sourceforge.net/packages/gzip.htm"&gt;Gzip for Windows&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: medium; line-height: 1.5em;"&gt; =&amp;gt; downloaded: Complete package, except sources&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: medium; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1) In&amp;nbsp; the command prompt: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "C:\Users\sbrpac&amp;gt;"C:\Program Files (x86)\GnuWin32\bin\gzip" -cd "C:\data.csv.gz"&lt;/P&gt;&lt;P&gt;Returned only the first row of the csv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) In SAS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let File1="C:\data.csv.gz";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let dir=C:\"Program Files (x86)"\GnuWin32\bin\gzip;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data result_data ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filename file2 pipe %unquote(%str(%'&amp;amp;dir -cd &amp;amp;file1%'));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile file2 dlm="|" LRECL=32767 truncover&amp;nbsp; dsd firstobs=2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ..... run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returned an empty table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know what might have been wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 20:46:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40473#M8252</guid>
      <dc:creator>paulacalazans</dc:creator>
      <dc:date>2015-05-05T20:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to read compressed files by PC SAS on Windows 7?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40474#M8253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two possibilities.&lt;/P&gt;&lt;P&gt;1) The&amp;nbsp; one line is the error message from GZIP telling you why it didn't work. Try this code and check the lines in the SAS log.:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;filename file2 pipe %unquote(%str(%'&amp;amp;dir -cd &amp;amp;file1%'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Data result_data ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="line-height: 1.5em; font-family: 'courier new', courier;"&gt;&amp;nbsp; infile file2 obs=2 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="line-height: 1.5em; font-family: 'courier new', courier;"&gt;&amp;nbsp; input;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="line-height: 1.5em; font-family: 'courier new', courier;"&gt;&amp;nbsp; put _infile_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="line-height: 1.5em; font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;2) The end of line characters for the CSV file do not match what your SAS session is looking for.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Try this to have SAS show you the first five lines.&amp;nbsp; Any non printable characters will cause SAS to list the hex codes for the characters in the line.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13px; line-height: 1.5em; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13px; line-height: 1.5em; background-color: #ffffff;"&gt;filename file2 pipe %unquote(%str(%'&amp;amp;dir -cd &amp;amp;file1%'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Data result_data ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="line-height: 1.5em; font-family: 'courier new', courier;"&gt;&amp;nbsp; infile file2 obs=5 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="line-height: 1.5em; font-family: 'courier new', courier;"&gt;&amp;nbsp; input;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="line-height: 1.5em; font-family: 'courier new', courier;"&gt;&amp;nbsp; list;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="line-height: 1.5em; font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="line-height: 1.5em; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="line-height: 1.5em; font-family: arial, helvetica, sans-serif;"&gt;PS: You are working way too hard to manage the quotes in your OS commands. Use the QUOTE() function.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13px; background-color: #ffffff; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13px; background-color: #ffffff; font-family: 'courier new', courier;"&gt;filename file2 pipe %sysfunc(quote(&amp;amp;dir -cd &amp;amp;file1));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 20:54:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-to-read-compressed-files-by-PC-SAS-on-Windows-7/m-p/40474#M8253</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-05-05T20:54:46Z</dc:date>
    </item>
  </channel>
</rss>

