On Sat, 20 Jul 2013 07:33:52 -0700, John Mattson wrote:
>
>SO to start all over IS there a way to....
>1) On zOS MVS convert a file to ascii and/then
>2) Zip, compress whatever, it into something which gzip can unzip in unix?
>
Most easy; tested on an Ubuntu Linux system under Virtualbox on OS X:
572 $ ssh user@mvs "cp \"//'sys1.maclib(splevel)'\" /dev/fd/1" |
gzip >foosplevel.gz
password:
573 $ gunzip <foo*gz
* %SPLEVEL: MACRO KEYS(SET,ASM); /*
00050000
MACRO
00062500
(ssh performs EBCDIC<->ASCII; sometimes undesirable, but a boon
for your requirement.)
o Uses no temporary file space on z/OS and only the zipped
payload on Linux.
o Uses no non-IBM software on z/OS; runs gzip on Linux.
o could readily be inverted to use ssh client on z/OS; server
on Linux (untested).
o Isn't escaping quotation marks fun!?
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN