|
Troy, <snip> The following is the data structure for a file with 6 fields and a record length of 24 TrgBuffer DS FileName 10 LibName 10 MbrName 10 TrgEvent 1 TrgTime 1 CmtLevel 1 Reserved1 3 CCSID 10I 0 Reserved2 8 OrgRecOffset 10I 0 OrgRecLength 10I 0 OrgRecNulOff 10I 0 OrgRecNulLen 10I 0 NewRecOffset 10I 0 NewRecLength 10I 0 NewRecNulOff 10I 0 NewRecNulLen 10I 0 Reserved3 16 <------ OrgRecord 24 OrgRecordNul 6 blank_gap 18 NewRecord 24 NewRecordNul 6 </snip> You are seeing this problem because the trigger buffer changed, most likely by upgrading your OS. We also used to hardcode a data structure that had all our fields in it, but that isn't the right way to do it. You can hardcode the first half of the data structure (down to the arrow) but then you need to use the offsets in that structure to find the record map. If you have a data structure with your record layout that is based on a pointer, then you set that pointer to be the address of the parm, plus the offset that is in your data structure. In your case, OrgRecOffset. You need to do the same thing for your new record offset. Coding it this way will actually make your coding easier and shorter. Let me know if you need (or would like) more details Andy
As an Amazon Associate we earn from qualifying purchases.
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.