|
I got around the 32k problem by using a loop. It would offset by 32k, then do that again, and again, in a loop until the remaining amount to offset was less than 32k. Whether you use MI or RPG to get around the problem, it's still a lot nicer than using the QUSRTVUS API. :) On Thu, 26 Sep 2002, Douglas Handy wrote: > > >Actually, I used user spaces with pointers in V3R2. You just have to use > >an array for the pointer arithmetic. > > The problem with the array method is the 32K limit. I did use it in triggers > all the time under V3R2 though. > > I also wrote a little MI program for V3R2 to allow me to use pointer >arithmetic. > It just took three parameters: > > - Pointer > - Offset to add or subtract > - Optional opcode: "ADD" or "SUB" with "ADD" as the default > > I used a subprocedure to call it. I think it is in the MI list archives. It > left itself in storage so was pretty fast as it had a trivial number of > instructions... > > Thankfully I no longer need to support V3R2 and get to use all the goodies up > through V5R1 now! >
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.