|
Scott Klement wrote:
Since I'm a big fan of LIKEDS, I'd convert the data structure to a "template" (a structure that's just used as a template for creating other data structures) and then I'd create a copy that's all zeroes to compare to.
DBrnTotal ds likeds(BrnTotal_t) D dim(999) D inz(*LIKEDS)
DBrnZeroes ds likeds(BrnTotal_t) D inz(*LIKEDS)
/free
For Brn = 1 to %elem(BrnTotal); if (BrnTotal(Brn) <> BrnZeroes);
Wow, that's my favorite of the answers I've seen! Thanks, Scott.
Of course, the best part is that it worked! Thanks to all who replied.
Sean
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.