Statalist


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

Re: st: adding -input- in an ado file


From   Svend Juul <SJ@SOCI.AU.DK>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: adding -input- in an ado file
Date   Mon, 10 Mar 2008 12:57:47 +0100

Zhiqiang wrote:

The following simple program doesn't work. There may be several
alternatives to achieve the task. However, I would like to know if there
is any way to add -input- in a program.

----------------
program define _entryD
input	x y z  
	1	2	3
	4	5	6
end
end
-----------------

====================================================================

You can put the input lines in a do-file, and let the ado-file
call the do-file:

-----------------
program define _entryD
do c:\ado\personal\_entryD.do
end
-----------------


-----------------
* c:\ado\personal\_entryD.do
input	x y z  
	1	2	3
	4	5	6
end
-----------------

Hope this helps

Svend
__________________________________________

Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000  Aarhus C, Denmark
Phone:  +45 8942 6090
Home:   +45 8693 7796
Email:  sj@soci.au.dk
__________________________________________ 


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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