In reply to Wes Patton.

Thank you, Wes, for the alternative solution. It would work just fine for numeric values. Same idea - to create a comma-separated list of values. Your code, however, would need some modification to accommodate character values as do-loop syntax requires character values to be quoted.