BookmarkSubscribeRSS Feed
SanjayM
Calcite | Level 5
How to zip a file through SAS.
Platform us AIX
1 REPLY 1
Cynthia_sas
Diamond | Level 26
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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1072 views
  • 0 likes
  • 2 in conversation