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


  • Subject: RE: Another trigger question
  • From: Scott Mildenberger <Smildenber@xxxxxxxxxxxx>
  • Date: Wed, 11 Apr 2001 09:29:30 -0600

I'm not aware of the DSPOPNQRYF command but from your description it sounds like it is doing a CRTDUPOBJ on the file to QTEMP.  When this is done the new object in QTEMP will also have the trigger attached.  It also appears that the command is doing a CLRPFM on the file in QTEMP, you are not allowed to do that on a file with a *delete trigger.  The DSPOPNQRY file command needs to do a RMVPFTRG on the file in QTEMP after the CRTDUPOBJ in order to work correctly.  You need to talk to whoever created this command.
 
Scott Mildenberger
-----Original Message-----
From: Terri Harteau [mailto:tshaw@felkerbrothers.com]
Sent: Wednesday, April 11, 2001 8:35 AM
To: RPG400-L@midrange.com
Subject: Another trigger question

Hi,
 
    Thanks for all the help on triggers. I got it doing pretty much what I want, without changing our packaged programs! One thing I noticed though, is I can no longer do DSPOPNQRYF on the file. When I set up the trigger, I specified our data library and add, change, and delete for the event. When I do DSPOPNQRYF, I get an error that it cannot clear my file in QTEMP.  Isn't the trigger specific to the library I specified? Why is it halting on QTEMP? I can still do interactive SQL, so I have a workaround, I'm just more used to using query.  Thanks for any help you can give me.
 
Terri Harteau
tshaw@felkerbrothers.com
Felker Brothers Corp.
------------------------------------------------------------------------------------------------------------------
Whoever said nothing is impossible never tried slamming a revolving door.
------------------------------------------------------------------------------------------------------------------

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.