Hi All,
This is first question here. Hopefully I will get the answer.
We are migrating from z/os was3.5 to z/os 5.02. Most of the applications read the flat file (EBCDIC format) and convert into a pdf and display as pdf.
The problem we are having is when we are moving to WAS version5 the default file encoding version is ISO. We would like to change it to EBCDIC in the JVM settings. I would like to know how to set the file.encoding system property to EBCDIC (cp1047).
So that the application groups need not convert the files to binary and read. It takes lot of jvm memory and sometimes it cannot convert bigger files.
I would really appreciate if anybody can post the answer.
Thanks very much
Controlling output encoding under JZOSVM - file.encoding
This forum is not really for support of Websphere, but the following link from the Websphere documentation may be helpful to you:
http://publib.boulder.ibm.com/infocente ... _401z.html
a quote from this page:
"Note: If you have applications which access EBCDIC encoded files, you need to insure that they are explicitly specifying this encoding in the application code or change the encoding of the target file to match the new JVM setting."
I don't see in the document where it says that Websphere V5 can be run with default encoding of EBCDIC. You might ask your question on the Websphere newsgroup:
news://news.software.ibm.com/ibm.software.websphere.application-server.v5
If it were possible to change the default JVM file.encoding, it would be done simply by going to the JVM page of the WAS server configuration and add the property:
-Dfile.encoding=Cp1047
You could try this to see if it works.
The best thing to do, though is to change the applications to not assume the default encoding. This is done simply by specifying a code page (Cp1047) in every case where a Reader, Writer is constructed or where a String is converted to bytes.
http://publib.boulder.ibm.com/infocente ... _401z.html
a quote from this page:
"Note: If you have applications which access EBCDIC encoded files, you need to insure that they are explicitly specifying this encoding in the application code or change the encoding of the target file to match the new JVM setting."
I don't see in the document where it says that Websphere V5 can be run with default encoding of EBCDIC. You might ask your question on the Websphere newsgroup:
news://news.software.ibm.com/ibm.software.websphere.application-server.v5
If it were possible to change the default JVM file.encoding, it would be done simply by going to the JVM page of the WAS server configuration and add the property:
-Dfile.encoding=Cp1047
You could try this to see if it works.
The best thing to do, though is to change the applications to not assume the default encoding. This is done simply by specifying a code page (Cp1047) in every case where a Reader, Writer is constructed or where a String is converted to bytes.