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



A UDF [User Defined Function] is what is used to redefine output [to a program] reading data from a database file. Use the correct tool for the requirement.

The Read Trigger is used for auditing what was passed to the program that issued the read request. If the Read Trigger could change the data, then what was passed as data to the trigger for audit does not match what was sent to the program; function defeated. Also IMO IBM would almost have to refuse to ever investigate any problem where any Read Trigger was involved [if ever changing the buffer were allowed], except under a paid consultancy. Non-SQL trigger programs already were costly, to the point where many inquiries as suspected defect were effectively forced through ConsultLine before being /proven/ not to be a usage error; in my experience over 95% were usage problems.

At least UDF enforces well-defined structure\typing whereas a read trigger could rewrite the output from the following request to return "A BUNCH OF GARBAGE" instead of "SIMPLE", either on purpose or by an error in coding:
SELECT VARCHAR('SIMPLE') FROM SYSIBM.SYSDUMMY1

Regards, Chuck

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.