title: Capitalizing value labels in Stata
body: <p>Some datasets come with full-lowercase value labels, and I end up with graphs and tables showing results for "egypt", "jordan" and "saudi arabia" instead of the capitalized country names.</p>
  
  <p>I guess that the <code>proper()</code> string function can do something for me, but I am not finding the right way to write the code for Stata 11 that will capitalize all value labels for a given variable.</p>
  
  <p>I basically need to run the <code>proper()</code> function on all value labels on the variable, and then assign them to the variable. Is that possible using a <code>foreach</code> loop and macros in Stata?</p>