7 3 1 BEGIN_LOOP Parameters

LANSA Technical

7.3.1 BEGIN_LOOP Parameters

USING

FROM

TO

STEP

USING

Optionally specifies the name of a field that is to contain the value of the current iteration of the loop.

*INTERNAL, which is the default value, indicates that no user field is to contain the current iteration value. LANSA is to create an internal field that is not accessible to user RDML program logic.

Otherwise a field name may be specified. Any field specified must be of type numeric and must be defined in the LANSA data dictionary or in the function. In addition the field must contain enough digits to hold the maximum iteration value expected in the loop. This is not checked by LANSA.

FROM

Specifies the start value for the first loop iteration. If this parameter is omitted, value 1 is assumed. Specify either a numeric literal or the name of a numeric field that contains the value.

TO

Specifies the final value for the last loop iteration. If this parameter is omitted, value 9999999 is assumed. Specify either a numeric literal or the name of a numeric field that contains the value.

STEP

Specifies the value by which the loop iteration counter should be incremented after each loop iteration. If this parameter is omitted, value 1 is assumed. Specify any non-zero integer for this parameter.