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



Havin' a bad day are we?  :)

I actually meant that I did not see a way to pass fields in the ADDPFTRG.  
Since then, I found a great article on MidrangeServer that details the data 
structures passed, etc...  This will be the route I go, probably with a batch 
job to process the requests (for performance purposes).

I have also continued to experiment a bit with the SQL Triggers, and have come 
pretty close to the desired affect.  My only issue now is that I cannot get it 
to recognize the field name:

CREATE TRIGGER UpdateATS                   
AFTER UPDATE OF SPHY60 ON INP60            
REFERENCING NEW AS new_row                 
FOR EACH ROW MODE DB2ROW                   
CALL OSL1MQMODS/SQL_CE650U (new_row.PNUM60)
Variable PNUM60 not defined or not usable. 

PNUM60 is a row in the file INP60, but it is not recognized...  Although I do 
not intend to go this route, it does bug me that I cannot figure it out (and 
that it is not working as documented on in the SQL Developers Guide).  Anyhow, 
I am sure I will get it.

Thanks for your input, I do appreciate it.
David



-----Original Message-----
From: rob@xxxxxxxxx [mailto:rob@xxxxxxxxx]
Sent: Thursday, August 07, 2003 1:11 PM
To: Midrange Systems Technical Discussion
Subject: RE: SQL Triggers to call an RPG Program?


Look harder.
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/db2/rbafzmstcallsta.htm#HDRCALLSTA

Rob Berendt
-- 
"They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety." 
Benjamin Franklin 

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.