|
Date: Thu, 8 Mar 2001 09:12:40 +0100 From: "Simmerlein, Stefan" <S.Simmerlein@guenther.de> > >You say i should call the trigger with no parameters. >That means that i fill the parms with blanks and >make my call. > >*entry plist =20 > parm trigger_parm =20 > parm input_length =20 > >If i can do that there is another questions for me. >After the write operation which execute the trigger >i call the trigger by myself. >Has the trigger at this time the data or the >current record from the last run=20 >(same activation group) ? Stefan, if you want the trigger to have the data or current record from the last run, you can make the trigger save the data every time it's called normally, as long as you always end a normal call with LR off. In your normal trigger processing you would have to copy the information you wanted to some non-parameter variable in your program. But it's not necessary to go to the trouble of calling the trigger program with a blank parameter. I would call it truly with no parameters at all, like this: CALL TRGPGM PARM() Then in your trigger program, do C if %parms < 2 .. do cleanup processing C endif (or if you want, or if you're using RPG III, define the *PARMS subfield in the PSDS and check that subfield to find the number of parameters). Barbara Morris +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.