Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: local macro trouble


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: local macro trouble
Date   Tue, 23 Sep 2008 11:39:23 +0200

Maybe the -local- dies with the do-file? Have you tried a -global-?


HTH
Martin


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Ashim Kapoor
Sent: Tuesday, September 23, 2008 11:33 AM
To: statalist@hsphsun2.harvard.edu
Subject: st: local macro trouble

Hi everyone,

Maybe I am getting tired so I am not able to see this. Maybe some one
else can see it.

I do this : -- >

egen twodayfallindex=sum(twoindex)
local dispdate = twodayfallindex[_N]


in a do file.

and after  I run the do file if I say -macro dir- it does not show up
in the macros!!

How can that be ?

I don't know why I am unable to initialize this macro : ( !

Thank you,
Ashim.
*
*   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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index