BookmarkSubscribeRSS Feed
AdarshSaukat
Calcite | Level 5

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?

3 REPLIES 3
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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.

jakarman
Barite | Level 11

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 --<-----
jakarman
Barite | Level 11

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 --<-----

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 3 replies
  • 3758 views
  • 6 likes
  • 3 in conversation