× 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: Trigger question
  • From: "Goodbar, Loyd (AFS-Water Valley)" <LGoodbar@xxxxxxxxxxxxxx>
  • Date: Thu, 3 Feb 2000 18:13:53 -0500

I'm using the program from Pete Hall's web site
(http://www.execpc.com/~pbhall/?trigger.html) as a basis for making a
trigger program over a test file. I'm copying the buffer from the physical
file, plus some job information, to a capture file. All the fields in the
capture file reference the original file. 

The problem is, both the original file and the capture file use packed
fields, and I am receiving a data decimal error when I try to write to the
capture file. Since this is a before insert trigger, the original record
buffer should be NULL fields. I have added AWLNULL to the packed fields in
the capture file, set ALWNULL(*USRCTL) in my program, and "eval
%nullind(o_co) = *on" (the first packed field in the input buffer).

I was expecting to output NULLs to the original record buffer in the capture
file. Is there something I'm missing in regard to NULLs and packed fields? 

The original file is a vendor supplied file, so it cannot be easily changed.
Thanks!

--
Loyd Goodbar
Programmer/Analyst
Borg-Warner Automotive, AFS, Water Valley

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.