Zip files in mainframes using SAS/JCL

Reply
Occasional Contributor
Posts: 7

Zip files in mainframes using SAS/JCL

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?

Super User
Super User
Posts: 7,668

Re: Zip files in mainframes using SAS/JCL

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.

Valued Guide
Posts: 3,208

Re: Zip files in mainframes using SAS/JCL

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

---->-- ja karman --<-----
Valued Guide
Posts: 3,208

Re: Zip files in mainframes using SAS/JCL

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

---->-- ja karman --<-----
Ask a Question
Discussion stats
  • 3 replies
  • 932 views
  • 6 likes
  • 3 in conversation