Richard,
Many thanks for your suggestion. I tried using globals, but again it didn't
seem to work. I'm attaching part of the code I'm using (it'll hopefully be
'readable'). The strange thing is that I'm just having problems with the
outreg line of the program (STATA doesn't recognise the loop `var' in the
name of the out file...).
Thanks again for help and ideas!
Andrea
So if I am following you correctly... `var' is correctly expanding to text,
wood, paper, etc. throughout most of the program...but it does not expand
correctly when you get to the outreg command??? Or does it expand
correctly but you get an error?