<>
You're likely using // or /* */ to indicate comments.
Instead, use * to indicate comments in your do-file as these are the only comment indicators that can be used interactively (in the command window). See -help comments-
- Eric
__
Eric A. Booth
Public Policy Research Institute
Texas A&M University
ebooth@ppri.tamu.edu
Office: +979.845.6754
On Jul 3, 2011, at 11:51 AM, Mayank Mishra wrote:
> Hi all,
>
> I have a problem. Lets say I am working on a do file with comments.
> The comments are fine when I run the do file as do file. But, when I
> run a part of the code copied from the do file and pasted in command
> window, which includes comments, Stata considers the comments as part
> of code. So, apparently either I have to delete the comments or copy
> the code in a manner in which the comments are avoided. Both are
> undesirable for me. So, please tell me as to how can I avoid comments
> in such case.
>
> Thank You.
>
> OM
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/