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?
Calling GZIP from Z/OS
Re: Calling GZIP from Z/OS
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
//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