Previous Topic: Invalid MovesNext Topic: Example


Move All

The *MOVE ALL built-in function specifies that all of the fields from one context are to be moved to another context by name. You can specify up to four source contexts.

Note: You cannot use CON, CND, and WRK contexts as *Result contexts for this built-in function.

There are potentially five parameters for this function type:

Note: Function fields are not included by *MOVE ALL. You must explicitly move function fields to a new context using the *MOVE built-in function.

The *MOVE ALL built-in function performs a series of moves from one context to another, mapping fields by name.

CA 2E implements the *MOVE ALL built-in function as an RPG Z-ADD statement for numeric fields and as a set of MOVEL statements for alphanumeric fields. In COBOL, CA 2E implements the *MOVE function as a set of MOVE statements.