Skip to main content

Sample documentation

  • February 24, 2017
  • 3 replies
  • 0 views

I apologize, but I couldn´t find any jcl sample to run gzip in batch mode.

3 replies

  • 0 replies
  • February 27, 2017

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
/*

  • 0 replies
  • February 28, 2017

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?


  • 0 replies
  • February 28, 2017

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.