Calling GZIP from Z/OS

Discussion of the free COZBATCH utility for z/OS
Post Reply
walteg
Posts: 3
Joined: Fri Dec 05, 2008 10:18 am

Calling GZIP from Z/OS

Post by walteg » Fri Jan 29, 2016 7:52 am

Is it possible to take an MVS dataset, call gzip on a Linux box and have the output from gzip put back into an MVS dataset?

if so, does anyone have an example?

dovetail
Site Admin
Posts: 1772
Joined: Thu Jul 29, 2004 12:12 pm

Re: Calling GZIP from Z/OS

Post by dovetail » Fri Jan 29, 2016 6:59 pm

I will assume that you want to treat the input data set as text, and that it will be converted to ASCII with newline separators in the gzip archive.

//STEP1 EXEC PROC=COZPROC,
// ARGS='myuid@linux1.myco.com'
//STDIN DD *
fromdsn //DD:INPUT \
| gzip -c \
| todsn -b //DD:OUTPUT
/*
//INPUT DD DISP=SHR,DSN=KIRK.TEST.DATA
//OUTPUT DD DSN=KIRK.TEST.GZIP,DISP=(NEW,PASS),
// SPACE=(CYL,(10,5),RLSE),
// DCB=(RECFM=U,BLKSIZE=27998)

There is also a GZIP example in the presentation "Introduction to z/OS Hybrid batch processing"
http://dovetail.com/webinars.html

Here are some other examples:
http://dovetail.com/docs/coz/cookbook.html

Post Reply