× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello Jonathan,

I have to say I don't know anything about Java, but did a scan on

You start out your message by saying that you don't know anything about Java. So why assume that I'm wrong?

5769JV1 in Google and found the "Getting Started with Java and AS/400:
Java on AS/400" manual at http://164.42.157.80/manuales/java400.pdf.  On
the first page in Chapter 1 it says that you can "use Java with other
languages such as C++ and RPG".

That statement is so broad it could mean anything. It could be referring to the JNI APIs. It could be referring to the ability to call Java programs from RPG programs.

I was specifically referring to the RPG/Java integration that's used in the iSeriesToExcel project that Tommy Holden posted. Why would I know anything about this project? Because he's using a lot of code that I wrote in a series of articles that I wrote about using the HSSF/POI classes from RPG.

The code that he's using uses RPG's support for calling Java classes with the EXTPROC D-spec keyword. In other words, starting in V5R1 you can write code that looks like this:

     D HSSFWorkbook    S               O   CLASS(*JAVA
     D                                      :'org.apache.poi.hssf.usermodel-
     D                                     .HSSFWorkbook')

     D new_HSSFWorkbook...
     D                 PR                  like(HSSFWorkbook)
     D                                     ExtProc(*JAVA:
     D                                     'org.apache.poi.hssf.usermodel-
     D                                     .HSSFWorkbook':
     D                                     *CONSTRUCTOR)

What about that is new in V5R1?

-- The CLASS keyword.
-- The O (Object) data type.
-- The *JAVA special value.
-- The *CONSTRUCTOR special value

So... pretty much everything related to Java integration is new.

How do I know that this stuff was added in V5R1? Because IBM documented it in the "What's New in This Release?" section of the RPG Reference manual in the information center:
http://publib.boulder.ibm.com/iseries/v5r1/ic2924/books/c092508307.htm#HDRRELV5R1


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.