|
Phil wrote: > The RPG program was written several years ago and is still coded in OPM. In my view JDE World is long overdue a conversion to ILE. > This particular program does a lot of heavy array manipulation, Does it use the standard I00DSINX or worse, performance wise, I00DSBIN copy member for index definitions? You might get a further performance boost by removing these copies and instead defining packed indices of the same size. To do this you could create new copy members C55DSINX and C55DSBIN to be included somewhere within subroutine S999. They might look like this: C* Packed Array Index Fields C* C* This copy member should be placed in subroutine S999. C* It replaces the binary field definitions in the data C* structure in I00DSBIN with packed definitions. C* C Z-ADD*ZERO #A 50 C Z-ADD*ZERO #B 50 C Z-ADD*ZERO #C 50 C Z-ADD*ZERO #D 50 C Z-ADD*ZERO #E 50 <snip> C Z-ADD*ZERO #M 50 C Z-ADD*ZERO #N 50 C Z-ADD*ZERO #O 50 and this: C* Packed Array Index Fields C* C* This copy member should be placed in subroutine S999. C* It replaces the zoned field definitions in the data C* structure in I00DSINX with packed definitions. C* C Z-ADD*ZERO #A 10 C Z-ADD*ZERO #B 10 C Z-ADD*ZERO #C 10 C Z-ADD*ZERO #D 10 C Z-ADD*ZERO #E 10 <snip> C Z-ADD*ZERO #X 40 C Z-ADD*ZERO #Y 40 C Z-ADD*ZERO #Z 40 I don't much care for packed fields with even numbers of digits, but this gives you compatibility with the original field lengths. Dave... ======================================================= The opinions expressed in this communication are my own and do not necessarily reflect those of my employer.
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.