Hi The -vb option tells WZUNZIP to show the filenames in the zip archive and this is not what you want . Change -vb to -c and the contents of the archived file will be output , unfortunately sorrounded by extranous information from the wzunzip utility: I think that WZUNZIP does not support piping. 197 filename nziip pipe 'wzunzip -c C:\TEMP\TESTZIP.zip test.txt' ; 198 199 data _null_ ; 200 infile nziip ; 201 input ; 202 put _infile_ ; 203 run; NOTE: The infile NZIIP is: Unnamed Pipe Access Device, PROCESS=wzunzip -c C:\TEMP\TESTZIP.zip test.txt, RECFM=V,LRECL=256 WinZip(R) Command Line Support Add-On Version 3.1 (Build 8519) Copyright (c) 1991-2009 WinZip International LLC - All Rights Reserved Zip file: C:\TEMP\TESTZIP.zip ============================ Unzipping test.txt to con ------------------------- 1:,Count,Date,Time,,c:\pagefile.sys,C:\temp2,C:\temp 2:,0,21042012,202204,0,12667846656,0,273826763 2:,1,21042012,202205,0,12667846656,0,273826811 2:,2,21042012,202206,0,12667846656,0,273826859 2:,3,21042012,202207,0,12667846656,0,273826907 2:,4,21042012,202208,0,12667846656,0,273826955 Stderr output: Searching... NOTE: 14 records were read from the infile NZIIP. The minimum record length was 0. The maximum record length was 70. NOTE: DATA statement used (Total process time): real time 0.13 seconds cpu time 0.00 seconds If you use another unzip utility that supports PIPING , the result will be as you want: 205 filename zipfile pipe 'unzip -p C:\TEMP\TESTZIP.zip test.txt' ; 206 207 data _null_ ; 208 infile zipfile ; 209 input ; 210 put _infile_ ; 211 run; NOTE: The infile ZIPFILE is: Unnamed Pipe Access Device, PROCESS=unzip -p C:\TEMP\TESTZIP.zip test.txt, RECFM=V,LRECL=256 1:,Count,Date,Time,,c:\pagefile.sys,C:\temp2,C:\temp 2:,0,21042012,202204,0,12667846656,0,273826763 2:,1,21042012,202205,0,12667846656,0,273826811 2:,2,21042012,202206,0,12667846656,0,273826859 2:,3,21042012,202207,0,12667846656,0,273826907 2:,4,21042012,202208,0,12667846656,0,273826955 NOTE: 6 records were read from the infile ZIPFILE. The minimum record length was 46. The maximum record length was 52. NOTE: DATA statement used (Total process time): real time 0.10 seconds cpu time 0.00 seconds UNZIP.exe can be found at various open source places on the internet - just make sure that PIPING (-p) is supported. Cheers Henrik Dorf Denmark
... View more