× 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 don't know the precise reasoning behind IBM's recommendation, but it could based in part on the fact that if you implement a trigger using the CREATE TRIGGER statement in SQL, the resulting C program will be in the same schema/library as the table/PF.  They might recommend the placement of HLL programs for triggers in the same library for consistency.

See also Brian Parkins's comment about the trigger program being considered a database object.

On 3/17/2021 9:11 AM, Robert Rogerson wrote:
Hi All,

The standard in our shop is that files/tables go in FILLIB and programs go
in PGMLIB.
My requirement is to create a trigger (RPG) program and I'm undecided as to
which library to put the program in.

IBM recommends the data library (
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/dbp/rbaforzahftrg.htm)
but this goes against our shop standard. The document suggests the file
library but I can't find any documentation as to why the file library.

Is there any reason I shouldn't/can't use PGMLIB?

Thanks,

Rob


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.