No Stata error here, just a subtle misunderstanding.
Step 1. Stata substitutes macro names by their contents.
Step 2. -display- sees 12Jun and tries to make sense of it but fails.
12Jun is not a number, nor a variable name, nor a scalar name.
Solution: You need to spell out to Stata that you are dealing with a
string.
. di "$S_DATE"
does that.
Nick
[email protected]
Hoffman, George
i've got stata 10 on win32, and have been troubled by an error in the
date function:
. di $S_DATE
12Jun not found
r(111);
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/