I have one quick question if you're still following this thread. Why would you prefer to build a %lengthList function rather than use a %sysfunc call to COUNTW?

Thanks,
Bob