I have a problem with my output in MVS Datasets from Java.
As described at IBM http://www.ibm.com/developerworks/syste ... atchz.html I did the following:
ZFile outZFile = new ZFile("//DD:"+filename, "wt");
OutputStream ostream = outZFile.getOutputStream();
OutputStreamWriter wtr = new OutputStreamWriter(ostream, ZFile.DEFAULT_EBCDIC_CODE_PAGE);
BufferedWriter logfile = new BufferedWriter(wtr);
logfile.write("Text1");
logfile.newLine();
logfile.write("Text2");
logfile.newLine();
OutputStream ostream = outZFile.getOutputStream();
OutputStreamWriter wtr = new OutputStreamWriter(ostream, ZFile.DEFAULT_EBCDIC_CODE_PAGE);
BufferedWriter logfile = new BufferedWriter(wtr);
logfile.write("Text1");
logfile.newLine();
logfile.write("Text2");
logfile.newLine();
If I look at the output there are always two lines between the "Text"-lines.
Text1
Text2
Text2
If I output the text without the newLine()-Command the output is:
Text1Text2
What can I do? I do not find anything about it in documentations about Java and z/OS. The "\n" from Java I have already tried...
Regards
Oliver