I have a java class that receives UPD packets in ASCII. I have tested the class on a PC and the data written to the file stays intact in ASCII format. I am now happy with my class so I protoype it in RPG and write the same byte array to an iSeries PF. The problem is that a conversion of ASCII to EBCDIC occurs. Where is this conversion taking place and how do I stop it?

Here is the java method signature:

public byte[] getCDR(int len)

Here is the RPG prototype:

d getCDR          pr         65535a   extproc(*JAVA:CGF
d                                            :'getCDR')
d                                     varying
d len                           10i 0 value

Robert

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.