Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "G. Anderson" <ga274@cam.ac.uk> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: Load data using macro |
Date | 13 Jun 2013 14:57:43 +0100 |
Hi,I am able to save files using the name of a variable in a macro (in this case my dependent variable
So when I type save `depvar', replace it saves a file with the name of the dependent variable as my filename. Unfortunately when loading datause `depvar'
doesn't work. Any ideas how you can load data using names defined by macros? ThanksGareth
* * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/