8 12 FOR

LANSA Technical

8.12 FOR

The FOR/ENDFOR command enables the definition of a looping block of code which can be used to iterate through user-defined collections and collections provided by LANSA.

The loop is run once per item identified in the EACH parameter.

Also See

8.12.1 FOR Parameters

8.12.2 FOR Examples

8.9 ENDFOR

 

                                                           Required       

                                                                          

       FOR    --- EACH --------- #VariableName ------------------->       

                                                                          

               >-- IN ---------- #Expression --------------------->      

                                                                          

                                                           Optional       

               >-- KEY---------- #KeyVariableName ---------------->       

                                                                          

               >-- OPERATION----*DEFAULT -------------------------|       

                                *INSTANCE_OF ---- #ClassName              

                                *KIND_OF -------- #ClassName              

                                *DYNAMIC -------- #VariableName