Four individual *MOVE ARRAY statements are used in the example code for EEF RTV Order (Order detail) to move data from a field in the LCL context to a field in a multiple instance array parameter. This is a good illustration of how you can use *MOVE ARRAY. However, you can use *MOVE ARRAY, *ALL support for a more efficient approach.
You can replace the multiple *MOVE ARRAY statements with a single *MOVE ARRAY statement, specifying *ALL for the *Result and *Factor fields. You do not have to change the action diagram if you then add or remove fields from the array; a simple regeneration and recompilation works.
The following EDIT ACTION DIAGRAM panel shows how you can use *MOVE ARRAY (*ALL:)

The following EDIT ACTION DIAGRAM – FUNCTION DETAILS panel shows more detail on how you can use *MOVE ARRAY (*ALL:):

| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |