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



Jon,

I am having trouble defining the Null Maps.  The compiler doesn't like the 
ONField and NNField definitions.  I am a little lost how this would be used 
anyway.  My file contains a date field that could be '0001-01-01'.  Is that 
considered a null value for an *ISO date?   If I am not doing anything specific 
with a field, do I need to code for the null maps?

-Tracy 
 Ext. 3107


-----Original Message-----
From: Jon Paris [mailto:Jon.Paris@xxxxxxxxxxxxxx]
Sent: Thursday, March 20, 2003 6:30 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Programming a trigger audit in ILE


 >> I could not get my program to work until I inserted (what seems) is an
extra filler field in the parameter 1 buffer field between the old record
null map and the new record field.

The fact that you are talking about adding extra fields indicates that you
are not using the correct technique for this.  You should really be using
the offset entries and pointers to make it work simply and cleanly.

Check out the article "Are you trigger happy" which you can reference from
the page www.partner400.com/ArticlesEXTRA1.htm it explains why the
techniques sometimes used prior to V5R1 will only work in 1 out of 16 cases,
and gives you a basic structure for how you should approach the problem.
e-mail me off line if you have any problems with it.

Jon Paris
Partner400


_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



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.