The translation set up with the site command is for both the PUT and GET
commands. At the time of issuance, the ftp process does not know which you
will do. So every IBM-1047 code point has a corresponding UTF-8 code point.
But not every UTF-8 code point has an IBM-1047 code point. I think that is
the meaning of the message you referenced.


On Fri, Mar 1, 2013 at 12:01 PM, Paul Gilmartin <[email protected]>wrote:

> On Fri, 1 Mar 2013 09:16:50 -0800, Ed Jaffe wrote:
>
> >On 3/1/2013 9:05 AM, Joel C. Ewing wrote:
> >> Depending on the FTP defaults on both z/OS systems, you might need
> >> both "site" and "locsite" to control both translation from EBCDIC at
> >> sender and translation back to EBCDIC at the receiver.
> >
> >Yup. That was it!
> >
> Which moved me to an experiment:
>
> ftp> quote site sbdataconn=(IBM-1047,UTF-8)
> 200-Some characters cannot be translated between UTF-8 and IBM-1047
> 200 SITE command was accepted
> ftp> get foocopy
> local: foocopy remote: foocopy
> 229 Entering Extended Passive Mode (|||36359|)
> 125 Sending data set /u/user/foocopy
>      0        0.00 KiB/s
> 557 Data contains codepoints that cannot be translated
> ftp>
> ftp>
> ftp> quote site mbdataconn=(IBM-1047,UTF-8)
> 200 SITE command was accepted
> ftp> get foocopy
> local: foocopy remote: foocopy
> 229 Entering Extended Passive Mode (|||36360|)
> 125 Sending data set /u/user/foocopy
>      0        0.00 KiB/s
> 557 Data contains codepoints that cannot be translated
>
> What IBM-1047 codepoint cannot be translated to UTF-8?
> My data were:
>
> user@MVS:130$ od -x foocopy
> 0000000000      B415
> 0000000002
>
> I think it's broken.
>
> -- gil
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>



-- 
This is a test of the Emergency Broadcast System. If this had been an
actual emergency, do you really think we'd stick around to tell you?

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