Java programming is not my forte, but I do have a Java program that I occasionally have to modify. One function of this program writes records to an IFS file as follows :
private static void putErrorReport(String report) { String CRLF = "I would like to copy this file to a pf on the 400, but when I try to use CPYFRMSTMF, I get a ccsid error. I can ftp this file from the IFS to a pf, but would prefer not to do this. How can I overcome the ccsid error? Even better would be if I could write directly to a pf and bypass the copy altogether! Any help would be most appreciated! Thanks, Joe
"; try { AS400 as400 = new AS400(); IFSTextFileOutputStream file = new IFSTextFileOutputStream(as400, "/Mailer/ErrorReportMailer1.txt" , IFSFileOutputStream.SHARE_ALL, true); file.write(report+CRLF); } catch (Exception e) {e.printStackTrace();} return; }