On Thu, 26 Jul 2012 09:55:07 -0500, McKown, John wrote:
>
>Remember! that scp on z/OS does an EBCDIC to ASCII translation. If you need a 
>binary transfer,
>you'll need to use sftp.
> 
I've not tried sftp.  I'd expect that sftp and scp are both variants of ssh,
and the EBCDIC<->ASCII translation is intrinsic to the socket interface.
Does z/OS sftp have a BINARY subcommand?  Are you extrapolating too
much from Co:z?

I used ssh rather than sftp or scp in the example I posted (I've enhanced
it since) partly because of familiarity; partly it gives most control with
least terminal interaction.  Between two ASCII systems, I have done:

    ssh remote-host "cd wherever &&amp; tar -cf - ." | tar -xvf -

With EBCDIC, I'd need an iconv in the pipe.

I believe that if ssh (or kindred) needs to prompt for confirmation
or password it will write the prompt to stderr and read the response
from /dev/tty.  This might work from native z/OS UNIX (USS), perhaps
even from TSO OMVS.  It's less likely from TSO or BPXWUNIX.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to