On Tue, 10 Dec 2013 09:34:47 +0800, Ricky wrote:
>
>I tried to use
>
>quote site encoding=m
>quote site mbdataconn=(IBM-936,UTF-8)
>
>but got error msg that error occured while DBCS converting.
>
>How to solve this problem? Also failed from IBM-936 to IBM-1388. But
>they all OK if I use iconv in USS.
>
Well, since iconv seems to work for you, perhaps you can use iconv via
ssh.  This script appears to work for me.  Hammer and file to fit:

#! /bin/sh -x

MVS_CODEPAGE=IBM-936   # adjust to taste; perhaps IBM-936
MVS_CODEPAGE=IBM-1047  # adjust to taste; perhaps IBM-936

ssh "$MVS_USER@$MVS_HOST" "set -x
        iconv -f $MVS_CODEPAGE -t UTF-8 '$1' | 
        iconv -f ISO8859-1     -t IBM-1047"

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to