Here’s an example, using gzip to compress and then uncompress a file. Hope this helps.
– Jerry
//GZIP JOB
//BATCHSH EXEC PGM=BPXBATCH,PARMDD=CMDIN
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
//CMDIN DD *
SH ls -l /some/big/file;
/rsusr/ported/bin/gzip
</some/big/file
| /rsusr/ported/bin/gzip -d
| wc -c
/*