My java program runs on the AS/400 and creates a file using
FileOutputStream. Everything works fine as long as the file is in IFS. For
example if the output file is /home/mydir/myfile the data is written in
ASCII, CCSID 819. However, if I write to
/qsys.lib/mylib.lib/myfile.file/myfile.mbr the data representation appears
to still be ASCII.

I am pre-creating the file using CRTPF FILETYPE(*DATA) which forces CCSID
65535. I presume this is why java can't figure out how to convert the data.

How do I tell the java program to write the data as EBCDIC? Do I have to
convert it myself? I am looking at the BidiTransform class in the IBM
Toolbox for Java. Is this appropriate?

I also need to read data from both IFS and QSYS.LIB. Will the same technique


This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page