×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




As of 6.1, you can have recursive RPG programs as long as you are using
"linear-main procedure"
http://publib.boulder.ibm.com/infocenter/iadthelp/v8r0/topic/com.ibm.etools.iseries.pgmgd.doc/sc092507155.htm

If your are stuck prior to that, your only alternative is to take advantage
of ILE and make a a program that uses an RPG NOMAIN module along with a
CLLE or CLE procedure as the entry point.

You can take this a step further using a trigger mediator. Alan Campin has
a nice one here:
http://www.think400.dk/downloads.htm

Last time I looked, the actual trigger program was a C program. But all it
does is look up the procedure to call and them call it.

HTH,
Charles


On Mon, Mar 25, 2013 at 4:04 PM, Booth Martin <booth@xxxxxxxxxxxx> wrote:

Which, of course, calls the trigger again. :)

I am not sure I am following this completely, but perhaps an ADD -
*AFTER trigger that calls a program that does an UPDATE, not an ADD,
thereby not pulling the trigger?



On 3/25/2013 2:58 PM, Jack Tucky wrote:
... The trigger program doesn't have an F-Spec for the file, but I do
call
another program to insert the record. ...

--
Booth Martin
802-461-5349
http://www.martinvt.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-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-2026 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.