Re: Idea submitted: Built in function to subset an array using a procedure to filter
David Gibbs via RPG400-L <[email protected]>
| Newsgroups | gmane.comp.lang.as400.rpg |
|---|---|
| Message-ID | <CAEStNXkGZy3jx82t+FSppk5BaLjsrY3njZD6_fbCjgYVNs_CiQ@mail.gmail.com> |
On Mon, Nov 10, 2025 at 12:14 PM Jon Paris <[email protected]> wrote: > Personally, I'd sort it to get the blanks together and then use the first > one I found to quit the loop. > That was just an example ... I can think of use cases where I want to get a subset of an array based on criteria. A subfield of an DS array has a specific value (or one of multiple values). Some calculation on the value of the subfield. etc david -- IBM i on Power Systems: For when you can't afford to be out of business! I'm riding in the American Diabetes Association's Tour de Cure to raise money for diabetes research, education, advocacy, and awareness. You can make a tax-deductible donation to my ride by visiting https://mideml.diabetessucks.net. I may have diabetes, but diabetes doesn't have me! -- This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/rpg400-l or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l. Please contact [email protected] for any subscription related questions.