I need to zip few flat files, save them in mainframe and send the zipped file as an attachment via mail. Right now, SAS ODS Package feature enables zipping files (supported on a windows environment) but, I couldn't find any links for how it can be implemented on a mainframe. I do not have PKZIP installed in my shop to zip the files. So, searching for an other alternative.
Can someone please help me out in case there any options available?
Hi,
What OS is your mainframe running? If it is Windows then the ods package should run fine, so you submit your SAS program to the mainframe for processing and there is does the packaging.
There are various alternatives to WinZip these are 7Zip, WinRAR, plus many others - a Google will throw up many options there.
When you are mentioning JCL it is the IBM mainframe z/OS you are talking about.
Using ODS should still be a workable approach for Zip. Using 9.4 you are getting the zip file access.
Running java is also offering some zip functionality. Ear/War files are zipped files. Java is getting part with SAS on all machines. jar-The Java Archive Tool (Oracle) '
For the IBM environment it is they doing the delivery of java not Oracle see: IBM z/OS: Tools - Java: Hints and tips
It works probably easier to do zipping in a Windows or Linux machine having zip utilities available. Then upload the results.
When the only accessible machine is a IBM mainframe you have not other choice
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.