× 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.



Are you looking to dynamically compose the parm list at runtime or just
generate the necessary java toolkit code at project build time to save on
programming?

I would have to imagine there is a system table the contains all of this
information just like the systables for SQL entity definitions (similar to
what you are mentioning with JDBC).  Here is what I am talking about
concerning the systables for sql: http://tinyurl.com/kjadz.  You would think
there would be system tables that hold similar information for RPG objects
(but maybe not).

DSPMOD gives you a little information (i.e. the exported sub procedure names
of the RPG module) but from what I could see it doesn't give you the parm
list.

A couple more API's that might help:
QBNLMODI
QBNLPGMI
QBNLSPGM

Let us know if you find anything as I have also wondered how to do this for
quite some time.  I am sure it can be done, but hopefully it isn't at the MI
level :-)

Aaron Bartell

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Paul Holm
Sent: Tuesday, February 28, 2006 4:52 PM
To: java400-l@xxxxxxxxxxxx
Subject: Dynamically Program Parameter Lookup in Java?

Anyone have advice or pointers on the following?

 

I'm looking for a way to dynamically determine a HLL (RPG, CL, etc)
interface in terms of parameter counts and data types.  

 

I want to use this to generate Java code to interface with the iSeries
program dynamically via the toolbox.  Probably generate the SP or use the
program call directly.  

 

For example: JDBC gives you database metadata about files and stored
procedures, how about HLL?

 

Thanks in advance.    

 

Paul Holm
Senior Web Architect
PlanetJ Corp. 
Phone: 760-432-0600, Cell: 760-415-8830
WOW, Web Applications In Under 5 Minutes HYPERLINK
"http://www.gotWebData.net"; \nhttp://www.gotWebData.net 

 


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.1.1/271 - Release Date: 2/28/2006
 
--
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-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.