|
Hi Mihael, There are also a few places in your prototype where I'd code options(*varsize) -- but that's not why you're getting an error. The error is in the contents of your filterData data structure: > DFilterData DS QUALIFIED > D data 16A > D overallSize 10I 0 OVERLAY(data:1) > D filterKey 10I 0 OVERLAY(data:5) > D dataSize 10I 0 OVERLAY(data:9) > D filterData 10I 0 OVERLAY(data:13) [SNIP] > FilterData.filterKey = 1; > FilterData.filterData = -1; > FilterData.dataSize = 16; > FilterData.overallSize = %size(FilterData.data); There are two sizes involved here... The one you called "overallSize" is the size of the entire data structure, the one that you called "dataSize" is the size of just the "filterData" field. You have the overallSize correct, but the dataSize is wrong -- it should be set to %size(FilterData.filterData) -- which, since it's a 10I 0 will be 4. Good Luck
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.