DATA Step, Macro, Functions and more

THE ZIP UTILITIES USED BY SAS UNDER UNIX

Reply
Super Contributor
Posts: 371

THE ZIP UTILITIES USED BY SAS UNDER UNIX

[ Edited ]

hello,

I would like to identify the name and the version of  ZIP UTILITIES(  7z, winzip, gzip, ...) used by sas under unix .

Thank you. an other means, I want to identify the zip utilities used by my sas under unix to zip

Super User
Posts: 17,784

Re: THE ZIP UTILITIES USED BY SAS UNDER UNIX

I don't think your question makes sense as phrased.

 

SAS can interact with any of the zip utilities IF system commands are allowed, the application is installed and the application can be run via command line. This is true of any application/utility not just zip utilities.

 

For the ZIP methods within SAS, for example FILENAME ZIP, the SAS 9.4 documentation states that it only can work with files from WinZip.  

 

http://support.sas.com/documentation/cdl/en/lestmtsref/68024/HTML/default/viewer.htm#n1dn0f61yfyzton...

Super Contributor
Posts: 371

Re: THE ZIP UTILITIES USED BY SAS UNDER UNIX

Thank you for your answer.

That's very kind from.

I know well that sas, can create a .zip file.

I hope to be crear, my question is not about the creation of .zip file, it is about the identification of zip utilities used by sas to zip

How can I know, If my sas use gzip or other  ? , and the version used ?

Super User
Posts: 17,784

Re: THE ZIP UTILITIES USED BY SAS UNDER UNIX

Contact tech support, but I dont believe it uses an external program.  The tool/utility is built into SAS. The format of files is the WinZip format.  

Super Contributor
Posts: 371

Re: THE ZIP UTILITIES USED BY SAS UNDER UNIX

Thank you.

That's very intersting as answer.

It means that, if I used in sas program the functions "zip or unzip" in sas 9.2 or other version , I can use only the WinZip fomat ?

 

Super User
Posts: 5,081

Re: THE ZIP UTILITIES USED BY SAS UNDER UNIX

Whatever zip programs you have available, you could call from SAS.  For example within a SAS program:

 

%sysexec gzip /path/to/some/file;

 

If it would work as a Unix command, %SYSEXEC lets you execute that command from a SAS program.

Super Contributor
Posts: 371

Re: THE ZIP UTILITIES USED BY SAS UNDER UNIX

[ Edited ]

 

Super User
Posts: 6,933

Re: THE ZIP UTILITIES USED BY SAS UNDER UNIX


LineMoon wrote:

 


No external utility is used. The LZW compression algorithm used in UNIX compress is public domain since 2003, and the algorithms of gzip are open source from the beginning. Therefore it is quite easy to incorporate those in software (as long as one follows the principles of the GPL if such code is used)

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 7 replies
  • 316 views
  • 1 like
  • 4 in conversation