On Sun, Sep 11, 2016 at 12:22 PM, Scott Ford <[email protected]> wrote:

> John,
>
> Thank you for your review/option , my friend much appreciated. We are using
> a CI , Continous Integration process and I am trying design the z/OS to
> z/OS portion ...
>
> Also John, what the usage of UNIX on z/OS , i.e.; SCP to SCP ...?
>

​I would avoid "scp" on z/OS because it is "funky" compared to other UNIX
scp implementations. I haven't tried doing a z/OS UNIX to z/OS UNIX, on a
"real" UNIX scp does a straight binary transfer. But IBM has made their scp
translate from ASCII to/from EBCDIC. I don't know if they "munge" the data
when going from z/OS to z/OS. I wouldn't depend on it. Better would be
Dovetailed Technologies' "tofile" command. It is freely downloadable and
needs not be paid for or even registered. (
http://dovetail.com/products/dspipes.html ) This does require a
modification to the scp daemon configuration file on z/OS. The problem, in
a nutshell, is that the regular ssh channel does the ASCII<->EBCDIC
translation so that the normal ssh connection to a z/OS UNIX shell will end
up sending EBCDIC character to the shell, instead of ASCII. The
modification adds a new ssh channel (dspipes) which does not do this
auto-conversion.

Otherwise, I would probably use tar on the ASCII side and pax on the z/OS
side (or use zip on the ASCII side and jar on the z/OS side, z/OS <-> z/OS
would use pax on both sides). I often do something like that. Of course, if
you are doing transfers where some files need to be translated and other
don't, there is a bit of a problem (not for z/OS -> z/OS of course since
you just do a "binary" transfer). The z/OS pax command makes doing code
translation rather simple with the "-o" switch similar to
"-ofrom=iso8859-1,to=ibm-1047" to translate ASCII to EBCDIC. The "from" and
"to" values are the same as with the "iconv" command. You can list the
valid conversions easily on a z/OS UNIX shell with "iconv -l" command.

When I need to involve Windows <shudder/> I use "jar" (part of Java on
z/OS) on the z/OS side and "zip" on the Windows side.



>
> Scott
>
>

-- 
Unix: Some say the learning curve is steep, but you only have to climb it
once. -- Karl Lehenbauer
Unicode: http://xkcd.com/1726/

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