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



All,
I have a SQL Trigger setup at follows:
Create Trigger UPC_File_DL
After Delete
On FInUPC
Referencing Old as O
For Each Row Mode DB2Row
When (SubStr(O.InUPC, 1, 1) >= 0
and Character_Length(Trim(O.InUPC)) between 12 and 14)
Begin
Declare DQ_Name Char (10);
Declare DQ_Lib Char (10);
Declare DQ_Len Dec (5) ;
Declare DQ_DATA CHAR (128);
Declare Record_Id Char (10);
Set Record_Id = 'ITEM';
Set DQ_Name = 'LUCAS_EXP';
Set DQ_Lib = '*LIBL';
Set DQ_Data = Record_Id || O.InItem;
Set DQ_Len = Character_Length(Trim(DQ_Data));
Call Send_DataQ (DQ_Name, DQ_Lib, DQ_Len, DQ_Data);
End
;

In my RPG program, I am deleting some records, but the trigger does not
appear to execute.
I have a journal setup on the data queue, and when I issue the DSPJRN
command for it, it does not show any entries.

Is there a way to determine why this is not working?

TIA
Jeff Young
Sr. Programmer Analyst

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.