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



I have a trigger on a file that calls a particular RPG program so I can do
further processing with the record.  Has anyone ever come across a trigger
file that doesn't always work?  Sometimes a group of records will get
written to this trigger file and some of them will get processed by the
program and others wont.  That doesn't make sense at all to me.

Has anyone else had this problem with trigger files calling an RPG program?

Aaron Bartell

-----Original Message-----
From: bmorris@ca.ibm.com [mailto:bmorris@ca.ibm.com]
Sent: Wednesday, August 29, 2001 12:00 PM
To: rpg400-l@midrange.com
Subject: RE: Procedure Management Procedures



>From: "Jim Langston" <jlangston@celsinc.com>
>Date: Tue, 28 Aug 2001 14:18:00 -0700
> ...
>So, I had modules:
>DATETIME (Date/Time routines)
>SYSTEM   (System API call interfaces)
>CARTAGE  (Specific to the Cartage application)
>
>Service program CARTAGE contained all 3 modules.
>Service program GENERAL contained DATETIME and CARTAGE.
>
>So if I was writing a Cartage program I would use the CARTAGE
>service program.  If I was writing any other program, I would
>use the GENERAL service program.
>
>I am not sure if this is the proper way to do it, but I felt it
>was the best at the time.

Jim, I don't think that's the best way to do it.  That way, you
have the same code in two places which is the very problem that
service programs are supposed to alleviate.

A better way to do it would be to have the CARTAGE service program
only have the cartage-specific modules.  You could have two binding
directories, if you wanted to ensure that only Cartage programs
used the CARTAGE service program.  In your CARTAGE binding directory,
put both service programs.  In your GENERAL binding directory, just
put the GENERAL service program.

(It's ok to have the same service program in more than one binding
directory, because a binding directory is just a list that's only
used at compile time.)

Barbara Morris

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com


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.