You are not logged in. You can browse but not post. Login or Register by clicking 'Login or Register' at the top-right of this page. For more information on Statalist, see the FAQ.
Carlo Lazzaro is right but knowing which variables you do use in the do-file is the big deal here. That is anywhere between trivial (you just know or can quickly scan a short file) and very difficult (there can be a great deal of text in a do-file).
I guess the answer No would be unwelcome, although not the shortest answer ever on Statalist, one character long, which has been seen at least once. That answer was
Unfortunately, it is a very long do file, that works on a very large dataset, where some variables have similar names.
So, I wanted to reduce the dataset to the parts of it that I am using, while avoiding to drop variables that I am indeed using.
I thought that perhaps Stata retained somewhere the information on used variables (e.g., I open a new Stata session, I open the do file, run it all at once, and Stata knows what I have used and stores somewhere this information).
Asides from avoiding mistakes, it would allow me to save lots of time.
Thanks anyway!
Comment