There are few characters like Å, ø etc generally used by Danish people in their name.Correct hex code for them is Å – 67, Ø – 80 , If we view thru default host code page 037 US in mainframe.Ideally these characters should reflect same hex code in all host code page version. But if we use host code page like (Denmark 277) these hex values changes to Å – 5B, Ø – 7C.
Ideally it should be same as in 037 US. Is there a way to handle it to keep the hex same in all page version thu JCL or some way.
Joined: 06 Jun 2008 Posts: 8217 Location: Dubuque, Iowa, USA
Correct hex code for them is Å – 67, Ø – 80
This statement is FLAT-OUT WRONG! There are no "correct hex codes" for any characters -- there are merely the characters assigned in a particular code page. The values assigned in one code page are not the same as assigned in another code page, but that does not make one set right and one set wrong -- it just makes them different.
And what you want to do is not possible. Character hex values in one code page cannot be used to replace character hex values in another code page -- you either use the entire code page AS IT IS, or you do not. You do not get to pick and choose.
which seems a bit inconvenient but if that is the way it is then that is the way it is! However, you could go to IBM and ask if they could provide a tailored code page for you or provide a code-page tailoring facility. But whether such a thing could happen would, I guess, depend on how the code pages are processed within z/OS.