On Sun, Jun 30, 2019 at 2:21 PM Donald Russell <[email protected]>
wrote:

> I sincerely appreciate people’s feedback on this subject but the problem
> I’m trying to solve is how to compress the file, not whether compression is
> needed. The decision to compress was made based on frequency of use,
> bandwidth between source and destination and difference in file
> size/transmission time, the value of that benefit etc.
>
> Currently I use pkzip to create a gzip file. If I can accomplish this with
> bpxbatch then I may be able to cancel the pkzip license. The other aspect
> is I’d like to run this on an mvs system that doesn’t have non-ibm products
> on it so bpxbatch may be available whereas pkzip is not.
>

z/OS does not come with a UNIX compression product, other than the
"laughable" compress program. But I just tried it with the following
results:

jesysmsg.lst                                    600  File xxxxxx
 2019/05/23 06:54:06     988920 --s- nl        1
jesysmsg.lst.Z                                  644  File xxxxxx
 2019/07/01 09:41:27     179231 --s- ----      1

You can run something like the following in BPXBATCH:

//PS001   EXEC PGM=BPXBATCH,REGION=0M
//*PARM='SH printenv '
//STDOUT   DD SYSOUT=*
//STDERR   DD SYSOUT=*
//STDIN    DD DUMMY
//STDPARM  DD *
SH cp -T "//'INPUT.DSN'" /dev/fd1 | compress >|input.dsn.Z
/*

If you need this to be put back into a z/OS dataset it is a bit more
cumberson.

SH cp -T "//'INPUT.DSN'" /dev/fd1 |
   compress |
   cp -B "-W seqparms='blksize=23779,recfm=u,space=(cyl,(1,1))'"
   "//'INPUT.DSN.Z'"

Important note on the above. All the lines, without line end characters,
are concatenated into a single line and presented to BPXPARM as a long
PARM=. That means that you DO NOT use any shell continuation characters
because it is only one line. Also you DO NOT put in any comments because it
is all one line so that everything after the first # will be a comment.
And, if you want to have multiple commands, you MUST terminate each
command, except possibly the last, with a semi-colon.



>
> Don
>
>
-- 
Money is the root of all evil.
Evil is the root of all money.
With that in mind, money is made by the government ...


Maranatha! <><
John McKown

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to