> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:ibm-m...@bama.ua.edu] On Behalf Of Charles Mills
> Sent: Thursday, February 18, 2010 1:24 PM
> To: IBM-MAIN@bama.ua.edu
> Subject: Re: Moving data from z/OS to a desktop
> 
> Oh! Also, to answer the question you asked <g>.
> 
> The "zip" format is quite universal. Windows contains free tools for
> "zipping and unzipping" and there are also several paid 
> vendors, of which
> WinZip comes first to mind.
> 
> Data 21 (and perhaps others) markets a compatible product for 
> z/OS and VSE:
> http://www.data21.com/products/zip/compression.asp
> 
> There is also the "tar" format which is more UNIX-ey and 
> open-sourcey but I
> am less familiar with it. (However, the Google knows it well.)
> 
> You could also ask John McKown for a copy of his RLE 
> compression. (Mostly
> kidding.)

Well, that __would__ be nasty <grin>. The code is, at best, "tacky".

> 
> Compression is going to complicate your life somewhat, and has its own
> tradeoffs of both elapsed and CPU time.
> 
> Charles


Iffen it were me. I'd likely use gzip. Or even the very old UNIX "compress". 
zip is not really designed for "on the fly" compression and decompression. 
compress and gzip are for "stream" compression. I sometimes use them myself 
like:

gzip file | ssh u...@remote 'gunzip >file'

when I run over a slow link. That compresses the source file, piping the data, 
as it is being created, into ssh, which establishes a connection to "remote" as 
"user", then pipes the data coming over into gunzip which write it to "file", 
via redirection.

In any of these cases, "something" need to do the translation from EBCDIC to 
ASCII. Either before the compression or after the decompress, but before 
writing. Like:

gzip ebcdic.file | ssh u...@remote "gunzip | iconv -f ibm-1047 -t iso-8859-1 
|tr '\025' '\n' >"

Note in the above, that the iconv "messes up" in that z/OS UNIX delimits with 
an NEL (0x15) instead of an LF. So on the ascii side, the 0x15 needs to be 
translated into an LF (\n). The ASCII file transfer does this for you. But a 
binary, followed by a normal iconv, does not.

--
John McKown 
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * (817)-961-6183 cell
john.mck...@healthmarkets.com * www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets(r) is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance 
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The 
MEGA Life and Health Insurance Company.SM

 

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

Reply via email to