<?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 Correctly Use Pipe and WKUNZIP? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92776#M26408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a SUGI paper that discusses different strategies to read files inside compressed archives:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www2.sas.com/proceedings/sugi31/155-31.pdf" title="http://www2.sas.com/proceedings/sugi31/155-31.pdf"&gt;http://www2.sas.com/proceedings/sugi31/155-31.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;maybe that can help?&lt;/P&gt;&lt;P&gt;Stig&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jan 2013 23:32:12 GMT</pubDate>
    <dc:creator>Stig_Eide</dc:creator>
    <dc:date>2013-01-31T23:32:12Z</dc:date>
    <item>
      <title>How To Correctly Use Pipe and WKUNZIP?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92768#M26400</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;I am using SAS 9.3 (64 bit) on a Windows 7 computer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use pipe and wkunzip&amp;nbsp; to read text files directly from the zip file.&amp;nbsp; Based on the information that came with the wkunzip add on I used the syntax below but it isn't extracting from the text file portion.&amp;nbsp; The log doesn't indicate any errors, just that "0 records were read from the infile testing".&amp;nbsp; I am also curious if I need to identify the text file name because there could be many and/or could I use wildcards because they would all have the same naming convention i.e. 1234A, 1234B, 1234C etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please advise why this isn't working?&amp;nbsp;&amp;nbsp; Any and all assistance greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename testing pipe '"C:\Program Files\WinZip\wzunzip.exe" -vb F:\myfolder\Test.zip test.txt';&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data work.import_test;&lt;BR /&gt;infile testing truncover LRECL = 5000 firstobs=10;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;input @1 Prov&amp;nbsp;&amp;nbsp; $1.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @2 Inst&amp;nbsp;&amp;nbsp; $4.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @6 Fyear&amp;nbsp;&amp;nbsp; $4.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @10 Period&amp;nbsp;&amp;nbsp; $2.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @12 Batch&amp;nbsp;&amp;nbsp; $2.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @14 AbsNo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $3.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @18&amp;nbsp; Coder&amp;nbsp;&amp;nbsp; $2.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @20 ChartNo&amp;nbsp;&amp;nbsp; $10.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @30 RegNo&amp;nbsp;&amp;nbsp; $7.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @37 SecChartNo&amp;nbsp; $10.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @47 MatNBChart&amp;nbsp; $10.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @57 HCN&amp;nbsp;&amp;nbsp; $12.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @69 Postal&amp;nbsp;&amp;nbsp; $6.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @75 Rescode&amp;nbsp;&amp;nbsp; $7.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @82 Sex&amp;nbsp;&amp;nbsp; $1.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @83 ProvHCN&amp;nbsp;&amp;nbsp; $2.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @85 RFP&amp;nbsp;&amp;nbsp; $2.;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 15:36:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92768#M26400</guid>
      <dc:creator>shellp55</dc:creator>
      <dc:date>2013-01-31T15:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: How To Correctly Use Pipe and WKUNZIP?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92769#M26401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, test.txt is inside Test.zip?&lt;/P&gt;&lt;P&gt;In that case, you could maybe do this:&lt;/P&gt;&lt;P&gt;filename testing pipe '"C:\Program Files\WinZip\wzunzip.exe" -vb F:\myfolder\Test.zip test.txt &amp;amp; type test.txt';&lt;/P&gt;&lt;P&gt;This would put the content of Test.txt to STDOUT and then the program would get the content of the file.&lt;/P&gt;&lt;P&gt;I guess, if you need to delete the file afterwards, you could add the delete command after the type command.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Stig&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 16:17:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92769#M26401</guid>
      <dc:creator>Stig_Eide</dc:creator>
      <dc:date>2013-01-31T16:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: How To Correctly Use Pipe and WKUNZIP?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92770#M26402</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;The -vb option tells WZUNZIP to show the filenames in the zip archive and this is not what you want .&lt;/P&gt;&lt;P&gt;Change -vb to -c and the contents of the archived file will be output , unfortunately sorrounded by extranous information from the wzunzip utility:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I think that WZUNZIP does not support piping.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;197&amp;nbsp; filename nziip pipe 'wzunzip -c&amp;nbsp; C:\TEMP\TESTZIP.zip test.txt' ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;198&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;199&amp;nbsp; data _null_ ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile nziip ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;201&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;202&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put _infile_ ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;203&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;NOTE: The infile NZIIP is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unnamed Pipe Access Device,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROCESS=wzunzip -c&amp;nbsp; C:\TEMP\TESTZIP.zip test.txt,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECFM=V,LRECL=256&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;WinZip(R) Command Line Support Add-On Version 3.1 (Build 8519)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Copyright (c) 1991-2009 WinZip International LLC - All Rights Reserved&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Zip file: C:\TEMP\TESTZIP.zip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;============================&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Unzipping test.txt to con&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;-------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;1:,Count,Date,Time,,c:\pagefile.sys,C:\temp2,C:\temp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;2:,0,21042012,202204,0,12667846656,0,273826763&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;2:,1,21042012,202205,0,12667846656,0,273826811&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;2:,2,21042012,202206,0,12667846656,0,273826859&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;2:,3,21042012,202207,0,12667846656,0,273826907&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;2:,4,21042012,202208,0,12667846656,0,273826955&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Stderr output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Searching...&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;NOTE: 14 records were read from the infile NZIIP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The minimum record length was 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The maximum record length was 70.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;NOTE: DATA statement used (Total process time):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.13 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use another unzip utility that supports PIPING , the result will be as you want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;205&amp;nbsp; filename zipfile pipe 'unzip -p&amp;nbsp; C:\TEMP\TESTZIP.zip test.txt' ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;206&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;207&amp;nbsp; data _null_ ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;208&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile zipfile ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;209&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;210&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put _infile_ ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;211&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;NOTE: The infile ZIPFILE is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unnamed Pipe Access Device,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROCESS=unzip -p&amp;nbsp; C:\TEMP\TESTZIP.zip test.txt,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECFM=V,LRECL=256&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;1:,Count,Date,Time,,c:\pagefile.sys,C:\temp2,C:\temp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;2:,0,21042012,202204,0,12667846656,0,273826763&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;2:,1,21042012,202205,0,12667846656,0,273826811&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;2:,2,21042012,202206,0,12667846656,0,273826859&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;2:,3,21042012,202207,0,12667846656,0,273826907&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;2:,4,21042012,202208,0,12667846656,0,273826955&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;NOTE: 6 records were read from the infile ZIPFILE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The minimum record length was 46.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The maximum record length was 52.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;NOTE: DATA statement used (Total process time):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.10 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UNZIP.exe can be found at various open source places on the internet - just make sure that PIPING (-p) is supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Henrik Dorf&lt;/P&gt;&lt;P&gt;Denmark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 16:30:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92770#M26402</guid>
      <dc:creator>HenrikDorf</dc:creator>
      <dc:date>2013-01-31T16:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: How To Correctly Use Pipe and WKUNZIP?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92771#M26403</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;Thanks for the replies but still not working in that I get the message 0 files read but no error messages.&amp;nbsp; Henrik according to the SAS knowledgebase, pipe and wkunzip are supposed to work together even though one of the messages showing up is "unnamed pipe access device". &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 20:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92771#M26403</guid>
      <dc:creator>shellp55</dc:creator>
      <dc:date>2013-01-31T20:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: How To Correctly Use Pipe and WKUNZIP?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92772#M26404</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;When i say that WKUNZIP dos not support pipe - i mean that it is not able to exclude messages and trademarks in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see that the infile option "firstobs=10" will take care of the first 8 lines of information from WKUNZIP and the first dataline which presumably contains variable names. &lt;/P&gt;&lt;P&gt;Personally i prefer the clean input from UNZIP with no messages from the unzip utility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unnamed pipe access device is a SAS concept since you can define&amp;nbsp; named and unnamed pipes in filename statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And finally for solving the problem:&lt;/P&gt;&lt;P&gt;The LRECL=5000 seems to have impact in my test - so I would suggest that you remove this parameter to see if it helps you too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Henrik &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 21:35:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92772#M26404</guid>
      <dc:creator>HenrikDorf</dc:creator>
      <dc:date>2013-01-31T21:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: How To Correctly Use Pipe and WKUNZIP?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92773#M26405</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;I just realized that truncover will handle the problems that could occur if LRECL&amp;nbsp; does not match the true recordlength. &lt;/P&gt;&lt;P&gt;Sorry ...this will not solve anythng &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It i strange that you have the message "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; 0 files read&lt;/SPAN&gt;" &lt;/P&gt;&lt;P&gt;To see the messages from WKUNZIP you could write the program like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data work.import_test;&lt;BR /&gt;infile testing truncover LRECL = 5000 ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;IF _N_&amp;lt;11 then do;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; putlog _infile_;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;end;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;input @1 Prov&amp;nbsp;&amp;nbsp; $1.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @2 Inst&amp;nbsp;&amp;nbsp; $4.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @6 Fyear&amp;nbsp;&amp;nbsp; $4........ &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Henrik &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 21:54:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92773#M26405</guid>
      <dc:creator>HenrikDorf</dc:creator>
      <dc:date>2013-01-31T21:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: How To Correctly Use Pipe and WKUNZIP?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92774#M26406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your system administrators allow...you might could perform the extract via the X command and then process the file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X '"C:\Program Files\WinZip\wzunzip.exe" -vb F:\myfolder\Test.zip test.txt';&lt;/P&gt;&lt;P&gt;filename testing "F:\myfolder\test.txt" LRECL = 5000;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 22:27:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92774#M26406</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2013-01-31T22:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: How To Correctly Use Pipe and WKUNZIP?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92775#M26407</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;Thanks for the responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Henrik:&amp;nbsp; there was a message of "NOTE: DATA STEP stopped due to looping" so can't it just be an if statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBailey:&amp;nbsp; I assume that this is to unzip the file to the folder and from there I can input it?&amp;nbsp; If so, that didn't work because I get the error message "ERROR: Physical file does not exist, F:\myfolder\test.txt." &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the following to work in that it shows in the log what the contents are but I want to read and extract/manipulate the data while keeping it within the zip file.&amp;nbsp; Is that not possible?&amp;nbsp; Even if I extract it, manipulate it and then delete the extraction (leaving the zip file as is), is that possible?&amp;nbsp; Also, I haven't even gotten to password protection yet which I was hoping I could include or there is no point in this exercise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got this to work to show the output in the log:&lt;/P&gt;&lt;P&gt;filename testing pipe '"C:\Program Files\WinZip\wzunzip.exe" -c F:\myfolder\Test.zip test.txt';&lt;/P&gt;&lt;P&gt;data _null_ ;&lt;BR /&gt;infile testing;&lt;BR /&gt;input ;&lt;BR /&gt;put _infile_ ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any and all assistance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 22:51:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92775#M26407</guid>
      <dc:creator>shellp55</dc:creator>
      <dc:date>2013-01-31T22:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: How To Correctly Use Pipe and WKUNZIP?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92776#M26408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a SUGI paper that discusses different strategies to read files inside compressed archives:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www2.sas.com/proceedings/sugi31/155-31.pdf" title="http://www2.sas.com/proceedings/sugi31/155-31.pdf"&gt;http://www2.sas.com/proceedings/sugi31/155-31.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;maybe that can help?&lt;/P&gt;&lt;P&gt;Stig&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 23:32:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92776#M26408</guid>
      <dc:creator>Stig_Eide</dc:creator>
      <dc:date>2013-01-31T23:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: How To Correctly Use Pipe and WKUNZIP?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92777#M26409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So that suggests either you can't use the X commands (unlikely if you didn't get an error) or the unzip syntax is incorrect.&amp;nbsp; If you just run the x command and then go look in the F folder, does the file exist?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 23:43:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92777#M26409</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2013-01-31T23:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: How To Correctly Use Pipe and WKUNZIP?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92778#M26410</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;Thanks for sticking with me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stig:&amp;nbsp; thanks, yes I've looked at this and can't get that to work either.&amp;nbsp; I read in another post where someone contacted the author of the paper and found he didn't test all of his code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBailey:&amp;nbsp; I am the only person on my computer but I have an admin and user profile.&amp;nbsp; I ran the program from my admin profile just in case there were issues with my not being able to use the x command and there was the error message about no physical file existing.&amp;nbsp; So, using either profile, no file shows up in the F folder suggesting the syntax for unzip is incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other thoughts? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 00:34:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92778#M26410</guid>
      <dc:creator>shellp55</dc:creator>
      <dc:date>2013-02-01T00:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: How To Correctly Use Pipe and WKUNZIP?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92779#M26411</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;Okay, I don't know why it's working this time but I revisited all the previous information I had including the blurb from the SAS knowledgebase site.&amp;nbsp; I used what they had like I did before but this time it worked.&lt;/P&gt;&lt;P&gt;I also found the syntax to use the password function (use -s and your password right after - in the example below my password is 1234).&amp;nbsp; So the following works and I thank all who tried to help me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename testing pipe '"C:\Program Files\WinZip\wzunzip.exe" -s1234 -o -c&amp;nbsp; F:\myfolder\test.zip' ;&lt;/P&gt;&lt;P&gt;data test_import ;&lt;BR /&gt;infile testing firstobs=10 truncover LRECL=5000;&lt;/P&gt;&lt;P&gt;input @1 Prov&amp;nbsp;&amp;nbsp; $1.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @2 Inst&amp;nbsp;&amp;nbsp; $4.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @6 Fyear&amp;nbsp;&amp;nbsp; $4.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @10 Period&amp;nbsp;&amp;nbsp; $2.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @12 Batch&amp;nbsp;&amp;nbsp; $2.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @14 AbsNo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $3.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @18&amp;nbsp; Coder&amp;nbsp;&amp;nbsp; $2.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; @20 ChartNo&amp;nbsp;&amp;nbsp; $10.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that as was alluded to by DBailey (and SAS knowledgebase), you have to select firstobs=10 to bypass the code from WinZip.&amp;nbsp; I think another issue for me was that I wasn't including the firstobs&amp;nbsp; statement first.&amp;nbsp; Note that I don't have to cite the files within the zip which is great because I have lots.&amp;nbsp; If I wanted to exclude some I could use the -e syntax and I would imagine I can limit by file extension versus name if I wanted to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am so very pleased to get this darn thing working!&amp;nbsp; Thanks again to anyone who responded!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 01:16:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92779#M26411</guid>
      <dc:creator>shellp55</dc:creator>
      <dc:date>2013-02-01T01:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: How To Correctly Use Pipe and WKUNZIP?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92780#M26412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what happens if you open a command window and run the command outside of sas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"C:\Program Files\WinZip\wzunzip.exe" -vb F:\myfolder\Test.zip test.txt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 13:25:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-To-Correctly-Use-Pipe-and-WKUNZIP/m-p/92780#M26412</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2013-02-01T13:25:26Z</dc:date>
    </item>
  </channel>
</rss>

