D getBytes        PR         65535    ExtProc(*JAVA:
D                                             'java.lang.String':
D                                             'getBytes')
D                                     Varying

RpgString = getBytes(javaString);

I believe that this is what you are looking for.

Michael Schutte

Classic Italian dishes with a Bob Evans Twist - Enjoy our new Homestyle

java400-l-bounces@xxxxxxxxxxxx wrote on 11/21/2006 04:11:26 PM:

I've just started playing with Java on the iSeries.

Our young Java programmer has developed a class which will return a
variable length string. I will be invoking this through an ILE RPG

In RPG I presumed that this would be a *varying declaration, but then I
realized that a string in Java is an object.

I know that there is an object type in RPG, but this is only to manage
the interface to calling Java methods.

What is the correct technique for passing back a varying length
character 'string' when RPG is calling Java?



This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you are not the intended recipient, any use,
disclosure or copying of this message is unauthorised. If you have
received this message in error, please reply using the sender's
email address.

This footnote confirms that this email message has been scanned for
computer viruses. EIG-Ansvar Limited does not accept liability for
any loss or damage, whether caused by our own negligence or not,
that results from a computer virus or defect in the transmission of
this email or any attached file.

EIG-Ansvar Limited - Australia (A.B.N. 21 007 216 506)
Email : insure@xxxxxxxxxxxxxxxx

Eig-Ansvar Limited - New Zealand
Email : insure@xxxxxxxxxxxxxxxx


This is the Java Programming on and around the iSeries / AS400
(JAVA400-L) mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2022 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.