IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

change z/os default 1047 ccsid tp 1097


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
meykh2014

New User


Joined: 03 Jul 2014
Posts: 34
Location: munich

PostPosted: Sat Sep 05, 2015 5:21 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Sep 10, 2015 9:47 pm
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Sep 10, 2015 11:14 pm
Reply with quote

Try with RECFM=VB :-)
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Sep 10, 2015 11:52 pm
Reply with quote

<< boy, do I feel dumb! >>

Yes, changing to use VB worked for the transfer.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Sep 11, 2015 12:26 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Running a Job with the Default User ID JCL & VSAM 2
No new posts 3270 personal communications. Can't c... TSO/ISPF 2
No new posts SELECT from data change table DB2 5
No new posts Trying to change copybook in online c... CICS 4
No new posts Change Default Scroll Setting TSO/ISPF 1
Search our Forums:

Back to Top