On Tue, 27 Mar 2012 21:39:26 -0400, Shmuel Metz (Seymour J.) wrote: > >>WTF!? Didn't Shmuel tell us that UTF-8 contains all of Unicode? > >Yes, but I said nothiong about either IBM-424 or IBM-1047. Is there an >easy way to find what code point it's choking on? Also, I thought that >you wanted to tramslate IBM-424 to UTF-8, not UTF-8 to IBM-424. > Quite so. Which is the reason I think FTP is in error for claiming the data contain an invalid code point. Using a z/OS UNIX (whatever) temp file, it can all be done with a single FTP command and a bizarre script:
# (Local stuff redacted) # MEMBER="$1" DSN=TEST.TESTPRT MVS_TEMP="/tmp/$MVS_USER" ftp $MVS_USER@$MVS_HOST <<end-of-ftp ascii quote site encoding=sbcs quote site sbdataconn=(IBM-1047,ISO8859-1) get $DSN($MEMBER) $MEMBER put $MEMBER $MVS_TEMP/$MEMBER quote site encoding=mbcs quote site mbdataconn=(IBM-424,UTF-8) get $MVS_TEMP/$MEMBER $MEMBER delete $MVS_TEMP/$MEMBER quit end-of-ftp cat "$MEMBER" <UGH!/> -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN