A loop to group variables
Posted: Thu Apr 09, 2015 11:50 am
Hi. I am trying to group a whole bunch of variables with similar name structure. Can someone please help me figure out why this code I am trying isn't working? It creates a group titled "granulars" with only one variable "a_usgol_nd". Instead, I would like all of these variable to appear in the same table, a_usgo11_nd, a_usgo15_nd, a_usgo17_nd, etc.
Thanks a lot for help!
Code: Select all
for %x 11 15 17 18 20 21 22 221 23 24 25 269 27 28 29 30 32 34 35 36 50 51 60 61 62 603 63 64 642 65 66 67 71 72 74 92 a_b c d e f h i j k m l
group granulars a_usgo{%x}_nd
next