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


  • Subject: RE: Program Call Parameters
  • From: "Kumar, Santha" <sankumar@xxxxxxxxxxxxxxxx>
  • Date: Tue, 17 Oct 2000 15:34:55 -0400

Thanks Ken. Looks like using a structure is the best way to go. 


-----Original Message-----
From: Sims, Ken [mailto:KSIMS@SOUTHERNWINE.com]
Sent: Tuesday, October 17, 2000 1:58 PM
To: JAVA400-L@midrange.com
Subject: RE: Program Call Parameters


Hi Santha -

>Making my old RPG Programs modular is not an easy task for me. It involves
>analysis and redesign of all functions within it. We all know that the Java
>methods don't have that many parameters. But my question was about how to
>use the AS400 Toolbox Java ProgramCall class to call an "Existing old RPG
>program". 

How about writing a "driver" RPG program that would accept a single
structure from a ProgramCall that would have all of the parameters lumped
together in the format needed by the RPG program that you really want to
call.  The "driver" program would call the program that you really want,
passing as parameters the subfields of the data structure that it received.

The tricky part would be making sure that the single structure has numeric
fields in the format required by the program that you really want to call.
Otherwise you will need to have the "driver" copy numeric values to
standalone fields of the proper format, and copy the data back to the
structure after the call if the values could change.

Ken
Southern Wine and Spirits of Nevada, Inc.
Opinions expressed are my own and do not necessarily represent the views of
my employer or anyone in their right mind.

+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

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.