Page 1 of 2

which codepage is used?

PostPosted: Sat Oct 01, 2011 9:21 am
by Mike1304
Hi,

I wonder, what codepage we are using on our z/Os.
Is there a place, where I can see the name of the codepage?

Mike

Re: which codepage is used?

PostPosted: Sun Oct 02, 2011 9:18 am
by dick scherrer
Hello,

Why does this matter? Is there some problem? If so, post the problem, not the curiousity.

Which codepage on which platform/product?

Re: which codepage is used?

PostPosted: Sun Oct 02, 2011 1:01 pm
by Mike1304
ok, but I think it doesn't help:

I use the 3rd party product M/Text CS running in Websphere Application Server under AIX on a server.
The manual and the support are very poor.

This product produces AFP files in EBCDIC on the server, which are transferred (binary FTP) to the z/OS host and printed there.
Special characters are not correct, e.g. sign "ü" is shown as sign "{" (or "}", I do not remember exactly).

In the configuration of the product, I find codepage and encryption parameters.
The codepage looks like the names of the codepage of the fonts, the encryption is named e.g. cp1252.
This looks similar to a CCSID, therfore I want to test some others, e.g. 1140, 1401, 850.

==> So if I can find out what CCSID my z/OS is using, I do only have to make one test for that.

PS: is 1252 a CCSID of a z/OS or is it from a Win PC?
maybe I try cpUTF8 first, because UTF8 is the codepage of the server!

Re: which codepage is used?

PostPosted: Sun Oct 02, 2011 1:12 pm
by dick scherrer
Hello,

ok, but I think it doesn't help:
When you ask a question, it is best to simply provide the requested info - you may not think it can help, but very often it does. . .

Suggest you speak with whoever supports JES on your mainframe or possibly someone in network support.

How are these files transferred to the mainframe?

is it from a Win PC
I suspect it may not be a pc, but rather an aix/unix system.

Re: which codepage is used?

PostPosted: Sun Oct 02, 2011 2:12 pm
by Mike1304
Thanks for your answer!

How are these files transferred to the mainframe?
=> by FTP-Batch running on z/OS with type binary

Do you know, if 1252 is definitely not a z/OS CCSID?

best regards
Mike1304

Re: which codepage is used?

PostPosted: Sun Oct 02, 2011 2:15 pm
by BillyBoyo
1252 is Latin-1 for Windows.


Google gave me this from IBM support.

Re: which codepage is used?

PostPosted: Sun Oct 02, 2011 5:45 pm
by Robert Sample
Do you know, if 1252 is definitely not a z/OS CCSID?
z/OS systems can handle 1252, however since 1252 is an ASCII-based code page (ISO-8859-1 with some variations), it is not a native code page for z/OS. IBM-1047 is the "typical" z/OS code page although there are others that could be used.

You might be able to achieve what you want by using the FTP translate function, which allows you to specify the sending and receiving CCSID values. If you are using FTP on the z/OS system, you really need to contact the site support group to find out what translation tables have been set up for FTP already -- and especially if you need one added.

Re: which codepage is used?

PostPosted: Sun Oct 02, 2011 6:30 pm
by steve-myers
Robert Sample wrote:... you really need to contact the site support group to find out what translation tables have been set up for FTP already -- and especially if you need one added.
Ah, but the IP claims he is doing a binary transfer, which does not do character translation in FTP. Another translation issue is AFP data is a mix of EBCDIC character data and true binary data, so one does not want to translate this data unless it is clearly understood where binary ends and and character starts and for how long.

A binary transfer of AFP data to a mainframe will not work unless some additional post transfer work is done on the data after the transfer. Sometime in the 1990s I tried this game and never got the transfer and fixup right.

Re: which codepage is used?

PostPosted: Sun Oct 02, 2011 7:37 pm
by BillyBoyo
If you are creating the EBCDIC on AIX with 1252, binary FTP to the mainframe and getting the "wrong" print characters for "specials", why don't you run the print job on the mainframe with the 1252?

Re: which codepage is used?

PostPosted: Mon Oct 03, 2011 3:09 am
by steve-myers
Another option might be to alter the program inserting the offending characters into the output to insert the "correct" characters.