This page (revision-8) was last changed on 23-Apr-2022 17:06 by Harry Metske

This page was created on 23-Apr-2022 17:06 by Harry Metske

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
8 23-Apr-2022 17:06 8 KB Harry Metske to previous
7 23-Apr-2022 17:06 8 KB Harry Metske to previous | to last
6 23-Apr-2022 17:06 8 KB Harry Metske to previous | to last
5 23-Apr-2022 17:06 8 KB Harry Metske to previous | to last
4 23-Apr-2022 17:06 8 KB Harry Metske to previous | to last
3 23-Apr-2022 17:06 8 KB Harry Metske to previous | to last
2 23-Apr-2022 17:06 2 KB Harry Metske to previous | to last
1 23-Apr-2022 17:06 2 KB Harry Metske to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 18 changed 2 lines
Since 19?? z/OS offers [Unix System Services|http://www-03.ibm.com/servers/eserver/zseries/zos/unix/].
So basically you can run Unix-type applications on the mainframe, at least that's the theory. In practice, most applications cannot be easily ported.
z/OS offers [Unix System Services|http://en.wikipedia.org/wiki/UNIX_System_Services].
So basically you can run Unix-type applications on the mainframe, at least that's the theory.
In practice, most applications cannot be easily ported.
At line 21 changed one line
For Java this is different, Java offers real platform Independence, so running Java applications on the mainframe is not a big deal.
For Java this is different, Java offers real platform independence, so running Java applications on the mainframe is not a big deal.
At line 25 removed 2 lines
Some Java applications make the false assumption that the default encoding is ASCII, and those don't run correctly on the mainframe.
At line 57 added 25 lines
! Assuming ASCII
Some Java applications make the false assumption that the default encoding is ASCII, and those don't run correctly on the mainframe.
So when doing IO (files, sockets) think about what the encoding is for the data you are writing/reading :
%%code
String encoding = "ISO8859-1";
String fileName = "/tmp/myWonderfulFile";
//
// reading :
BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(new File(fileName)), encoding));
//
// writing :
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(new File(fileName)), encoding));
Specify an encoding when using the getBytes method to convert a String to a ByteArray:
byte myBytes = myString.getBytes("8859_1");
Also specify an encoding when creating a String from a ByteArray:
String myString = new String(myBytes, "8859_1");
%%