|
I have wrapper programs written in RPG (mostly used from Net.Data). Most of them are extremely simple but some of them get as fancy as converting data from numeric to character or translating a status code into something that's human understandable. Matt -----Original Message----- From: CWilt@xxxxxxxxxxxx [mailto:CWilt@xxxxxxxxxxxx] Sent: Wednesday, September 22, 2004 4:43 PM To: rpg400-l@xxxxxxxxxxxx Subject: Calling service program procedure from OPM via program wrapper. I've got a couple of service program procedures that I also need to be able to call from an OPM program. So, I need to add a program front end to both procedures. My first thought was a CLLE program that used the CALLPRC command. However, CRTBNDCL doesn't allow you to specify a BNDDIR to use. So, I seem to have two choices 1) CLLE module, then use CRTPGM 2) RPGLE bound program. I'm using ACMS so option 1 requires two objects to be defined, a *MODULE and a *PGM. Whereas option 2 only requires the *PGM object. Seems kind of wasteful to have an RPG program that only has two lines, CALLP and EVAL *INLR=*ON. I had wanted to have the procedures and the program have the same name, certainly don't think I could do this in RPGLE, don't know if it would even work in CLLE. How do you all handle this? Thanks, Charles
As an Amazon Associate we earn from qualifying purchases.
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.