Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: save "`table1'"


From   Rongrong Zhang <[email protected]>
To   [email protected]
Subject   Re: st: save "`table1'"
Date   Fri, 27 Dec 2013 14:12:32 -0500

Thank you Phil!

Yes , before save "`table1'", there was
tempfile table1

save "`table1'"

but I ran line by line, why did I get
++++++++++++++

. tempfile table1

.
end of do-file

. do "C:\Users\rzhang\AppData\Local\Temp\STD00000000.tmp"

. save "`table1'"
invalid file specification
++++++++++++++

On Fri, Dec 27, 2013 at 1:36 PM, Phil Schumm <[email protected]> wrote:
> On Dec 27, 2013, at 12:27 PM, Rongrong Zhang <[email protected]> wrote:
>> I got a sample program in which it has a line
>>
>> save "`table1'"
>>
>> notice ` symbol? I wonder if that is a typo
>
>
> The characters ` and ' denote expansion of a local macro.  In this case, table1 is the macro name, and this is presumably defined somewhere above in the program or do-file.  For more information, see [U] 18.3 Macros.
>
>
> -- Phil
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index