Statalist


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

st: Re: RE: RE: Calling a Do-file


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: Re: RE: RE: Calling a Do-file
Date   Thu, 23 Oct 2008 19:51:36 +0200

do-files can take arguments. See -help do-

HTH
Martin
_______________________
----- Original Message ----- From: <[email protected]>
To: <[email protected]>
Sent: Thursday, October 23, 2008 7:46 PM
Subject: st: RE: RE: Calling a Do-file


I think what I'm asking is can you point me in the direction of documents describing how to write a function in Stata with arguments (where the function is a do-file).


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of [email protected]
Sent: Thursday, October 23, 2008 9:07 AM
To: [email protected]
Subject: st: Calling a Do-file

Is there a way to run a do-file (ie secondary do-file) from inside
another do-file (ie primary do-file) and change a variable inside the
secondary do-file?
For example,
replace j=1
do "C:\xyz.do"
replace j=2
do "C:\xyz.do"

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index