When an MDO component is a structure defined with a type of SEQUENCE OF or SET OF, you can assign into or from some or all of the components that comprise the structure by a generic index value. This form of assign uses a varying range, and the syntax is as follows:
&ASSIGN { MDO=a.b.{*} | VARS=aaa*}
RANGE=(n,m)
{ DATA=data |
{ FROM { VARS=bbb* | MDO=x.y.{*} }
[ RANGE=(p,q) ] } }
Note: The asterisk in braces ({*}) must replace a SET OF or SEQUENCE OF index only. The asterisk can appear once only anywhere within the MDO name referenced.
The target component names of the form a.b.{i}, where i = n up to m, take part in the assignment from the corresponding source variable. The multiple assignments take place as though a separate assignment was issued for each item within the SET OF or SEQUENCE OF structure. The variable index can be the last part of the MDO name (as shown in the previous example), or more name segments can follow (for example, MDO=a.b.{*}.c).
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |