This is from the IBM Advanced Programming Course AS10 (Oct. 2003):

"You can now call Java methods as easily as you now call procedures, and you
can write native methods in RPG as easily as ordinary subprocedures. There
is still extra coding required if you want to work with a Java object, like
a string.
For more information, read Chapter 11. RPG and the eBusiness World in the
V5R2 ILE RPG IV Programmers’ Guide."

I'm also attaching an image that goes along with the text.

Glenn Gundermann




B.Quindt@xxxxxxxxxxxx writes:

Hello,

we called a Java Program in a CL-Programm

JAVA       CLASS(com.mypgm..itext.GeneratePDF) +
             PARM(&DIR) OUTPUT(*NONE)

&DIR is a Character String (128 A)


Can I do this in an RPG Programm directly via Prototyp Call ?

How ?

...
....
public class GeneratePDF {

     private String filePath = null;

     public static void main(String[] args) {

...
...

_____________________________________________________
Burkhard Quindt
email: b.quindt@xxxxxxxxxxxx
______________________________________________________

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




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.