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



Thanks, Number of triggers . . . . . . . . . . . . : 0


On Mon, Apr 25, 2016 at 9:27 AM, Rob Berendt <rob@xxxxxxxxx> wrote:

The first thought I have to see if there's anything on a file is to
execute the command DSPFD.
In this case I would use the "Find" line to scan for rigger. Purposefully
leaving off the T because the search is case sensitive.
Number of triggers . . . . . . . . . . . . : 0

The second thought I had was checking the "IBM DB2 for i Catalogs" at

http://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/db2/rbafzcatalogtbls.htm?lang=en

SYSTRIGCOL
The SYSTRIGCOL view contains one row for each column either implicitly or
explicitly referenced in the WHEN clause or the triggered SQL statements
of a trigger.
SYSTRIGDEP
The SYSTRIGDEP view contains one row for each object referenced in the
WHEN clause or the triggered SQL statements of a trigger.
SYSTRIGGERS
The SYSTRIGGERS view contains one row for each trigger in an SQL schema.
SYSTRIGUPD
The SYSTRIGUPD view contains one row for each column identified in the
UPDATE column list, if any.

Yes, you could program a trigger to throw an exception if someone tries to
add a third rebate.

Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





From: Hoteltravelfundotcom <hoteltravelfun@xxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 04/25/2016 09:09 AM
Subject: Re: TRIGGERS
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>



How can I know if there is a trigger on a particular file?
and can there be a trigger to limit the number of records as follows:

Item# Rebate date amt
123 050116 100
123 050216 100

Can I have a trigger say that you can only have 2 rebates per item?

On Mon, Apr 25, 2016 at 9:07 AM, Hoteltravelfundotcom <
hoteltravelfun@xxxxxxxxx> wrote:

hi

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

Please contact support@xxxxxxxxxxxx for any subscription related
questions.


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

Please contact support@xxxxxxxxxxxx for any subscription related
questions.


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.