|
M. wrote: > I was wondering about an item that you published in MC, May 2001 issue, >p78, entitled V5R1 Enhancements to RPG IV. In Figure 2 it states the >opcode and suggested freeform replacement. > > Next to MOVEA is says EVAL. Has EVAL been enhanced to substitute MOVEA >functionality? EVAL hasn't been enhanced. MOVEA is rather a strange beast, and can be replaced my one of the following alternatives: 1) If you moving one array to another (MOVEA SRC TGT) such that both operands are arrays with the same type, format, and size of elements, you can just EVAL one to the other. 2) For MOVEA with one array starting at an element other than the 1st, or where the start index is a variable and type, format and size are the same, code an EVAL within a FOR loop. 3) For anything else, code overlapping data structure subfields, and EVAL source to target. Not all of the suggested substitutions are necessarily easy, or exactly semantically identical. The free-form calc is primarily intended for new code. Cheers! Hans Hans Boldt, ILE RPG Development, IBM Toronto Lab, boldt@ca.ibm.com +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-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-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.