I could be wrong, but I don't believe that zip allows input from stdin.
If info-zip uses fopen() to open files, then it might be possible to
read mvs datasets directly as input files.

Kirk Wolf
Dovetailed Technologies
http://dovetail.com

On Sun, Jun 14, 2009 at 8:55 PM, Timothy Sipples<[email protected]> wrote:
> Vikesh Bhoola writes:
>>This is a issue, as we really don't have the
>>additional space to copy the 14GB MVS file to
>>USS just to zip it.
>
> Is it possible to string together a couple z/OS UNIX commands and use UNIX
> pipes?
>
> I don't think this works exactly, but something roughly like this:
>
> cp //\'ANYUSER.PROGRAM.OUTPUT\' | zip /usr/anyuser/output.zip -
>
> The zip command does accept stdin (using "-" as shown), and the cp command
> does read MVS datasets. But I don't think that syntax is exactly right.
> According to the z/OS 1.10 documentation, the following z/OS UNIX commands
> support direct interaction with MVS datasets:
>
> cp
> mv
> pax
> tar
> c89
>
> If at least one of those can transparently pipe to stdout, then you should
> be able to get an MVS dataset into a zip file without writing that 14GB to
> an intermediate zFS or HFS file.
>
> ....Actually, I see in the archives that John McKown posted a possible
> solution. He said that z/OS UNIX cat does support MVS datasets. (Which
> isn't documented. :-() But if true, here's what might work:
>
> cat //\'ANYUSER.PROGRAM.OUTPUT\' | zip /usr/anyuser/output.zip -
>
> There are a few command line options for cat, and of course there are some
> for zip as well. So those could be added as required. Of course, you can
> also initiate this sort of command via z/OS JCL (e.g. BPXBATCH) if you need
> to do that.
>
> Anyway, I hope I'm on the right track at least.
>
> - - - - -
> Timothy Sipples
> IBM Consulting Enterprise Software Architect
> Based in Tokyo, Serving IBM Japan / Asia-Pacific
> E-Mail: [email protected]
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to