|
On Feb 12, 2021, at 12:16 PM, dr2@xxxxxxxx wrote:
Scott..
no arguments...however when you walk into a shoppe you have to use
what's in production and when that's what's in production, it is what it
is...
What has surprised me is that IBM didn't see this need DECADES ago and
build it it...but then, how many decades after how much asking did it
take them to FINALLY put .pdf as an option in OVRPRTF ?????
DR2
On 2021-02-12 09:51, Scott Klement wrote:
This is one of the quirks of the old multiple-occurrence data structure support that came from RPG III, you can only see one element at a time.--
I want to be absolutely clear: Multiple occurrence data structures (MODS) have been obsolete since 2001 (that's 20 years ago!) You should be using data structure arrays today!!
Assuming that this is old code and you don't have the time to rewrite it, though... In days of yore, I would write a subroutine that looped through the data structure. I would not call it normally, but would have a 'debug flag' (indicator) that would cause the program to call this subroutine at key points. Then, I could step through the subroutine to see what was in the different elements of the MODS.
In the early 2000's when DS arrays came along, I changed my technique to overlay my MODS with an array of data structures. I'd use a pointer to base the array on the first element of the MODS (its very important to set the pointer when the MODS is set to the first occurence.) Then, I would always be able to view the DS array in the debugger, even if the code didn't use the array version.
At this point, though... I haven't used a MODS in probably 15 years.
On 2/11/2021 5:29 PM, dr2@xxxxxxxx wrote:
In Debug, in RPG... I have DS with multiple occurs.... When I do an
eval xxx I want to see ALL elements in the array... How can that be
done?
DR2
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.