Page 1 of 1

Chinese Char support in Mainframe

PostPosted: Fri Nov 04, 2011 10:46 am
by ksathee2
Hi,
We have an requirement to support chinese characters in an existing mainframe system which is non dbcs (double byte character set) which is already a web enabled ie. the user has the online facility of this application which interacts with the mainfram for business logic.The existing will store only english characters.Is there any way to store and retrieve chinese chars without any change in the db or existing mainframe source.Is there any feasibility like receiving the chinese char from web and converting to english and storing and retreiving back and convert to chinese again whenever requested ? This should not impact my search functionality if am giving a chinese char in front end and doing a search.Please advise if any solution is there to acheive this.Response is higly solicited.

Rgds,
Sat

Re: Chinese Char support in Mainframe

PostPosted: Fri Nov 04, 2011 2:23 pm
by Robert Sample
If the application was not designed with Chinese character support in mind, then most likely either a major overhaul of the application or a complete rewrite will be required. Either case requires far, far, far more knowledge and time than you are likely to find on a forum. As enrico stated, your best bet will be to bring in a consulting firm to assist in the conversion. If this is not feasible, be prepared to spend months (at least) in learning enough to do the rewrite -- it is not a simple process that could be summarized in a few words.

Re: Chinese Char support in Mainframe

PostPosted: Fri Nov 04, 2011 2:47 pm
by BillyBoyo
Did you remember the SANTA clause on all your datanames when you compiled originally. That's the sort of magic you'd need to do exactly what you want. Christmas Magic.

Perhaps the best you can get with doing no/little work would be to investigate the web-based translators (google, bing, whatever). With ordinary text not written by a robot they can give poor results. With little context they can fail to translate at all. Maybe you can "train them" with your data, I don't know. I'd guess if you search you'll find discussion groups for these things elsewhere.

But for your system, as has been said before, there is no Magic.

Re: Chinese Char support in Mainframe

PostPosted: Fri Nov 04, 2011 5:58 pm
by ksathee2
Hi All,
Thanks for all your responses.This is just like tring to get a clue for an initial start.As you all suggest will try for some consultant to get some hint.Thanks guys.

SAT

Re: Chinese Char support in Mainframe

PostPosted: Fri Dec 16, 2011 5:18 pm
by pals
I think,mainframe supports ebcidc char set.So it wud undertsand chinese characters.and my query here is how cobol file can understand chinese chars when passed to it from java source?

Re: Chinese Char support in Mainframe

PostPosted: Fri Dec 16, 2011 11:25 pm
by dick scherrer
Hello,

I think,mainframe supports ebcidc char set.
Yes, it does, but i do not understand how this relates to the question?

So it wud undertsand chinese characters.
How did you make this leap? Suggest you post a few of these Chinese/EBCDIC characters in hex.

Re: Chinese Char support in Mainframe

PostPosted: Wed Dec 21, 2011 6:35 pm
by pals
Hi...i was trying to send 您好你怎么样 these from java to cobol file...in form "1234~您好你怎么样" string.it reaches cobol.but when it is unstringed and separated using parameter ~ and divided into two parts 1234,'this place is blank instead of chinese chars'.this i have checked by returning this variable value(which shud contain chinese chars) to java.so i mfinding solution for this.

Re: Chinese Char support in Mainframe

PostPosted: Thu Dec 22, 2011 1:07 am
by BillyBoyo
If it "reaches cobol" then it is still there after the UNSTRING.

You will not see Chinese characters unless you are using a Codepage which understands Chinese characters. You will see byte-values. And, probably, you won't see the byte-values because they have no display value in the Codepage you are using.

Try DISPLAY of the field from the Cobol program, and then use HEX when you display the output.

If you think a program which displays in hex from Cobol might be useful, then you can search for BBHEXD, aka The Junkbuster, on the sister-site http://ibmmainframes.com

Re: Chinese Char support in Mainframe

PostPosted: Thu Dec 22, 2011 2:17 am
by Robert Sample
Are you trying to send your data in Unicode, or DBCS, or something else? What code page are you using in COBOL? Does that match the source? Is the input data XML? What are you going to do with the Chinese characters -- store them in a file? a DB2 database? some other database? send them somewhere else?

Do you have access to a communications monitor that will let you see exactly what is going across the line, bit by bit? If not, your chance of success goes WAY down. Because if you have so little experience you think EBCDIC handles Chinese characters, then your skill set has some extremely large holes in it.