I apologize, but I couldn´t find any jcl sample to run gzip in batch mode.
Page 1 / 1
I apologize, but I couldn´t find any jcl sample to run gzip in batch mode.
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
/*
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
/*Hi, thank you, but is it possible to address a dataset without moving to the uss directory?
Hi, thank you, but is it possible to address a dataset without moving to the uss directory?
Yes.
//GZIP JOB
//BATCHSH EXEC PGM=BPXBATCH,PARMDD=CMDIN
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
//CMDIN DD *
SH cat "//'SOME.BIG.DATASET'" |
/rsusr/ported/bin/gzip
| /rsusr/ported/bin/gzip -d
| wc -c
/*
Some useful documentation:
The IBM documentation is actually quite good.
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.