DATA Step, Macro, Functions and more

Read dir of a Zip File

Reply
Contributor
Posts: 56

Read dir of a Zip File

If I have a filename statement as:

filename inf saszipam 'abc.zip' ;

If this zip file has 10 files inside the zip file, is there anyway using SAS to list all the file names inside this zip file ?

Thanks for any help

David
Trusted Advisor
Posts: 2,113

Re: Read dir of a Zip File

Since saszipam is undocumented and unsupported, that may be hard.

Using the documented approach with winzip,
http://support.sas.com/kb/26/011.html
you could specify the wzunzip option to list the contents rather than to transmit the contents of one specific file.
Ask a Question
Discussion stats
  • 1 reply
  • 126 views
  • 0 likes
  • 2 in conversation