Thank you so much. I got to learn something really nice.
However, seems like I didn't explain it clearly what I needed. This code will generate a string with values of all the variables(out of 100) that has top 10 values separated by a comma. But I need the vairable names separated by comma. The result variable should look more like the following:
"var01,var09,var99,var10,var77,var72,var91........"
Thanks for your help

