Desktop productivity for business analysts and programmers

Zip a file

Reply
Frequent Contributor
Posts: 97

Zip a file

How to zip a file through SAS.
Platform us AIX
SAS Super FREQ
Posts: 8,721

Re: Zip a file

Hi:
I don't know how to do it on AIX, but this syntax (using the X command) did work for me to create a ZIP file using WINZIP command syntax (the list of files to include in the zip archive are in the zipfiles.txt file and test.zip is the name of the zip file I'm creating):
[pre]
x 'c:\progra~1\winzip\winzip32.exe -min -a -p c:\test.zip @c:\temp\zipfiles.txt';
[/pre]

There are also some forum postings and Tech support notes that might help:
http://support.sas.com/forums/thread.jspa?messageID=1064Ш
http://support.sas.com/kb/23/637.html

In addition, if you are working within the context of the SAS Enterprise Intelligence platform, you can make a stored process return "permanent package" results and you can write those results EITHER to a webDAV repository OR to the server file system. Here's a forum posting about permanent packages:
http://support.sas.com/forums/thread.jspa?messageID=7911ủ

In addition, one of the new features of ODS in 9.2 will be the ability to create SAS package files using ODS PACKAGE capability:
http://support.sas.com/rnd/base/ods/odspackages/index.html

If you need more help figuring out how to zip, tar or make packages, Tech Support would be the place to go. They have Unix/AIX systems that they can use to help with operating system syntax.

cynthia
Ask a Question
Discussion stats
  • 1 reply
  • 119 views
  • 0 likes
  • 2 in conversation