Modifying Action Diagrams › Understanding Contexts › Move from a Structure to a Field
Move from a Structure to a Field
- The array is the input of the *CVTVAR function.
- The *CVTVAR function moves the last accessed array element of the named array to the named field. In this case, the array may contain multiple elements.
- The *CVTVAR function is implemented as a MOVEL operation from the associated data structure (array) to the field.
Here is an example of how this operation might look in an action diagram.

For more information:
- On the *CVTVAR built-in function, see section, Understanding Built-In Functions.
- On decomposing and recomposing character data, see this chapter, Understanding Built-In Functions topic, *CONCAT and *SUBSTRING functions.
- On arrays, see the section Using Arrays as Parameters, and see the chapter "Defining Arrays" in the Building Access Paths Guide.