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



On 4/6/2016 11:06 AM, dlclark@xxxxxxxxxxxxxxxx wrote:

This is what I have in my trigger program. ...

dcl-pr Main ExtPgm('UTLRP01RM');
TrgBuffer LikeDS(TrgInfo) Options(*Varsize);
TrgBufLen Int(10:0);
end-pr;
dcl-pi Main;
TrgBuffer LikeDS(TrgInfo) Options(*Varsize);
TrgBufLen Int(10:0);
dcl-pi;


If you're on 7.1 or later (which you are because you're using free-form :-), you don't need to code the prototype any more for programs that aren't called from RPG. You can just code the EXTPGM keyword on the PI.

dcl-pi *n EXTPGM('UTLRP01RM');
TrgBuffer LikeDS(TrgInfo) Options(*Varsize);
TrgBufLen Int(10:0);
dcl-pi;

Omitting the prototype is ideal for trigger programs that are invoked directly from database. If the trigger program is actually called by some other trigger programs that is also written in RPG, the prototype would presumably be in a copy file, (and then the prototype would likely have a different name from "Main").


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