|
At 08:28 10/14/1998 , Doug Hart wrote: > >In the routine below I'm loading a multiple occurrence >data structure from a data area, both are 800 char total. >This first code segment doesn't seem like the best way to >handle the data. Can't I fill the entire DS 'GRID' from >the DTAARA 'NETACC' with one function rather than 7 lines >of calcs? Any suggestions? I haven't checked this for a while, but a year or so back, MODS was implemented as a contiguous area with occurrence 2 immediately after occurrence 1 in storage. If that's still the case, you can just receive the entire MODS as an entry parameter in RPG3, or you could RTVDTAARA in RPG4 and use a basing pointer to locate the MODS at byte 1 of the data. You could also forgo the MODS and just reposition the basing pointer, which really accomplishes the same thing as OCCUR. Pete Hall peteh@inwave.com http://www.inwave.com/~peteh/ +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.