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: assign several lines of syntax to local?
From
Sergiy Radyakin <[email protected]>
To
[email protected]
Subject
Re: st: assign several lines of syntax to local?
Date
Thu, 12 Aug 2010 18:19:40 -0400
why don't you declare those several lines a program and call it time after time?
you don't have to put it into a different file. one file can have
multiple programs.
Best, Sergiy
On Thu, Aug 12, 2010 at 5:33 AM, raoul reulen <[email protected]> wrote:
> Hello All
>
> I have a large do-file in which a few lines of syntax come back
> several times. It is possible to assign a local to the lines of syntax
> so that I don't have to repeat it all the time? I don't want to use a
> loop for this. The "include" command does something similar, but I
> would have to save the relevant syntax in a separate file which I
> don't want. So, essentially I would like to assign several lines of
> syntax to a local, is this possible? Are there alternatives? Thanks.
>
> BW
>
> Raoul
> *
> * 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/