2 Loop Constructs

2.5 Variable initializations

A local loop variable is one that exists only when the Loop Facility is invoked. At that time, the variables are declared and are initialized to some value. These local variables exist until loop iteration terminates, at which point they cease to exist. Implicitly variables are also established by iteration control clauses and theinto preposition of accumulation clauses.

Thewith loop keyword designates a loop clause that allows you to declare and initialize variables that are local to a loop. The variables are initialized one time only; they can be initialized sequentially or in parallel.

2.5.1 - Sequential and parallel initialization
2.5.2 - Reference pages

The Loop Facility - 9 SEP 1996

Generated with Harlequin WebMaker