Quote:
how did you come to the conclusion that 3 times would do the job?
dont get me wrong; it works i just want to know how you figured that out, if you wouldnt mind sharing


RusselB said:
"I know that if $numtok returns 10, then none of the three locations needs dummy data", he also stated this was the max that would be missing."

---

I well however say that after reviewing the logic of it, I could have got away with using only 2.

The worst case would be 3 in a row x,,,,y resulting in pass 1 x,dummy,,dummy,y and pass 2 x,dummy,dummy,dummy,y (dummy representing space here)

I also should not have embedded the identifier as i did, this was due to forgetting repeaditive replace arguements can be passed

A faster command would likely be...
%data = $replace(%data,$+($chr(44),$chr(44)),$chr(44) $chr(44),$+($chr(44),$chr(44)),$chr(44) $chr(44))