View previous topic :: View next topic
|
Author |
Message |
meykh2014
New User
Joined: 03 Jul 2014 Posts: 34 Location: munich
|
|
|
|
hello
i have a question!
my goal is transfer(FTP) some files with utf-8 format to MF with ebcdic format(1097).
i read previously, prerequisite for this step is changing the table of utf-16 to 1097. i did this and i changed 1097 to 13488 table and loaded it to z/Os unicode area.
i can ftp from pc to z/OS with this properties correctly :
en=mb
mbd=(1097,utf-16)
format of file in pc is utf-16.
this means my table is worked fine from dbcs(utf-16) to sbcs(1097).
but when i ftp utf-8 file from pc to MF, it didn't work fine.
i understand where is the problem:
when i trying to ftp from pc to main frame, after login and befor sending en=mb and mbd commands, i saw unicode area(befor ftp i clear unicode area):
---------------------------------------------lable 1-------------------------------------------------
CONVERSION: 01047-01200(13488)-L 01047-01200(13488)-R
01200(13488)-01047-L 01200(13488)-01047-E
01200-01208-LMRE
----------------------------------------------------------------------------------------------------
after sending command en and mbd:
---------------------------------------------lable 2-------------------------------------------------
CONVERSION: 01047-01200(13488)-L 01047-01200(13488)-R
01200(13488)-01047-L 01200(13488)-01047-E
01208-01097-E 01097-01208-R
01047-01097-LE 01200-01208-LMRE
----------------------------------------------------------------------------------------------------
this means unicode system of MF uses 1047 ccsid (default) for converting from utf-8 to ebcdic(not 1097 but 1047) and then uses 1047 to 1097 table to convert to 1097, so adding or not adding my table(13488 to 1097) is not matter.
i don't want create or change utf-8 to 1047 table.
and creating of 1047 to 1097 table and replace that with current in system is wasteful(because some unicode character of me is destroyed under converting from utf-8 to 1047).
so my question:
how can i changed this default. i want replace 1047 with 1097 in lable 1 automaticly. how can i change 1047 (default of system)? |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
FYI. I am trying something very similar.
when I issue:
Code: |
quote site mdb=(1037,utf-8) |
I get this message:
Quote: |
200-No conversion available to 'utf-8' from '1037'. MBDATACONN ignored.
200 SITE command was accepted |
I then tried a different codepage:
Code: |
quote site mdb=(037,utf-8) |
and it seemed to work, but when I tried to put the file to mainframe, I get this:
Code: |
ftp> put ADBAC2D.PLI ADBAC2D
200 Port request OK.
504 Multi-byte encoding not supported for RECFM=FB
ftp> |
Now what to do? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Try with RECFM=VB :-) |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
<< boy, do I feel dumb! >>
Yes, changing to use VB worked for the transfer. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
The UTF-8 is a mixture of byte-lengths. So you can't, logically, have fixed-length output. One line of text is going to be one length. Another may be another. |
|
Back to top |
|
|
|