Not directly. The gzip command apparently does not have the code to read or write z/OS data sets, only z/OS UNIX files. But you can do:
cp "//'SOME.DATA.SET.NAME'" /dev/fd/1 |\ gzip |\ cp -W ' RECFM=U,BLKSIZE=27998,SPACE=(CYL,(10,20))' /dev/fd/0 "//'SOME.DATA.SET.NAME.GZIP'" This copies the DSN to "stdout" (/dev/fd/1). Pipes that into gzip's "stdin". Which writes the compressed data to "stdout". Which is piped into cp's "stdin" (/dev/fd/0) which is then written to the specified DSN. The parm after the -W are the allocation parameters for when the output DSN does not exist. Kirk's example works too. But does require you to write some Java code. Which may or may not be OK. We don't have a zIIP or zAAP, and are very MSU sensitive, so I avoid Java here. On Fri, Jul 19, 2013 at 3:01 PM, John Mattson <[email protected]>wrote: > I may cross post to mvs-oe list. > Is it possible to run gzip from the OMVS /bin and gzip a mainframe zOS > dataset into an omvs file? Naturally I could do it by first copying the > file to omvs, but I would prefer to avoid that. Its bad enough having 24 > gig in one place on disk, would rather not have it in two, even for a > short time. > > John Mattson, Epson America desk: 562-290-4163 cell:310-210-9152 > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > -- This is a test of the Emergency Broadcast System. If this had been an actual emergency, do you really think we'd stick around to tell you? Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
