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



Don't break your arm patting yourself on the back!   I never said I didn't 
understand the code, I just said eventually something I did fixed the program 
and I really didn't get to take the time to really figure out which change 
corrected the problem.

In any case , thank you for the input, it is always helpful.  

-Tracy 
 Ext. 3107


-----Original Message-----
From: Buck Calabro [mailto:Buck.Calabro@xxxxxxxxxxxx]
Sent: Friday, March 21, 2003 10:53 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: Programming a trigger audit in ILE


>I mean, if the offsets are the only way to 
>go, then why don't the buffer example just have one big field 
>that contains the old/new record values and tell you to use 
>the offsets to determine the starting and ending points, 
>rather than show individual fields?  

That technique works.  You do not need pointers to use offsets.  You can
describe the record as a giant array and use an array index as the offset.
Or you can go nuts and use substring.  The idea is the same: use the
"offset" values given in the trigger buffer to locate the record, and DON'T
ASSUME that the record data always starts in the same place in the trigger
buffer.

>Thanks for the input, as I know I have more work to do. I was 
>just curious if there was an actual reason why I needed to 
>input the extra field when it wasn't illustrated in any 
>documented examples.

Sounds like you are looking at less than stellar examples.

>How many times have we fixed a program, and then not 
>really understood why or how we fixed it??  

In my case, never.  If I don't understand the code then I don't put it into
production.
  --buck
_______________________________________________
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.