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: [email protected]
__________________________________________
*
* 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/