title: When are global macros deleted?
body: <p>I have a <code>do</code> file from which I would like to select a few lines of code and then run them using the <code>Execute (do)</code> button. The problem is that there are a bunch of local macros defined in this <code>do</code> file.  I can run them, but then in the Stata command prompt the local macros are not accessible. Thus, I think I should just be using global macros.  </p>
  
  <p>I have looked in several places and haven't been able to find out what scope macro variables actually have.  I realize that local macros are only defined in the instance (for example, a <code>do</code> file) they are originally created in. </p>
  
  <p>But for global macros, are they stored forever and every time I open up a new instance of Stata I will still have the global macros from previous sessions? </p>
  
  <p>Or do they get deleted each time I exit out of Stata (or something else)?</p>