First of all, REXX do not have arrays. REXX have stems, which looks like but are not arrays.
You can do
and so on. Not really sure what you want to accomplish though.
If all you want to do is display the values as your program runs, then look at the 'trace' instruction, specifically 'trace i' in this case.