Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

change z/os default 1047 ccsid tp 1097

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
meykh2014

New User


Joined: 03 Jul 2014
Posts: 27
Location: munich

PostPosted: Sat Sep 05, 2015 5:21 pm    Post subject: change z/os default 1047 ccsid tp 1097
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

Senior Member


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

PostPosted: Thu Sep 10, 2015 9:47 pm    Post subject: Reply to: change z/os default 1047 ccsid tp 1097
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Thu Sep 10, 2015 11:14 pm    Post subject: Reply to: change z/os default 1047 ccsid tp 1097
Reply with quote

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

Senior Member


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

PostPosted: Thu Sep 10, 2015 11:52 pm    Post subject: Reply to: change z/os default 1047 ccsid tp 1097
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Fri Sep 11, 2015 12:26 am    Post subject: Reply to: change z/os default 1047 ccsid tp 1097
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts change string before sertan string anatol DFSORT/ICETOOL 8 Tue Aug 15, 2017 5:43 pm
No new posts Default Message in Rexx cvnlynn CLIST & REXX 9 Wed Aug 02, 2017 12:38 am
No new posts How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts DFSORT - Overriding default option TU... Steve Ironmonger DFSORT/ICETOOL 3 Tue Apr 04, 2017 3:54 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us