|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: Problem with ado file - stcmd
Eva Poen's solution is probably the right one. More about it (and other
technical issues with Stat/Transfer) can be found in the Technical Note
in the on-line help for -stcmd-, accessed by typing
whelp stcmd
in Stata. (It helps if you know the name of the path, on your system,
for Stat/Transfer.)
I hope this helps. Let me know if you have any further queries.
Roger
Roger Newson
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected]
Web page: www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/pop
genetics/reph/
Opinions expressed are those of the author, not of the institution.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Eva Poen
Sent: 06 December 2007 15:11
To: [email protected]
Subject: Re: st: Problem with ado file - stcmd
Josiane,
"it is not working" is very vague. Can you be more specific? How do
you use it? What happens if you issue -shell "C:\Program
Files\StatTransfer9\st"- as a command in Stata? Does it open the
Stat/Transfer command processor?
I tried it with Stat/Transfer version 7 and Stata version 9. It works
for me.
Btw, a nicer way of doing this is to leave the original stcmd.ado file
unaltered, and instead have a line
-global StatTransfer_path "C:\Program Files\StatTransfer9"-
in your profile.do.
Regards,
Eva Poen
2007/12/6, Josiane Georges <[email protected]>:
> I am trying to use stcmd.ado to run Stat Transfer directly in Stata,
but it is not working. I've tried to use what I found in the FAQ, but it
did not work. I have modified the standard stcmd.ado file to read the
following:
>
> #delim ;
> prog def stcmd;
> version 9.0;
> /*
> Run the Stat/Transfer st command
> with parameters and switches supplied by the user.
> *!Author: Roger Newson
> *!Date: 04 June 2007
> */
>
> local stpath `"$StatTransfer_path"';
> if `"`stpath'"'=="" {;
> local stpath "st";
> };
> shell "C:\Program Files\StatTransfer9\st" `0' ;
>
>
> end;
> ______________________
>
> Any have and ideas on how to fix the ado file?
>
> Josiane "Josie" Georges
> Analyst, Liaison to the Division of Mental Hygiene
> Policy & Planning
> DOHMH
> Tel: 212-788-5342
> Fax: 212-788-5353
>
>
>
>
> **********************************************************************
> The New York City Department of Health & Mental Hygiene is now
offering information important for the health of all New Yorkers. To
sign up for these new and valuable updates, log-on to our website at
http://www.nyc.gov/health/email and select the NYC DOHMH updates you'd
like to receive.
>
> IMPORTANT NOTICE: This email is meant only for the use of the
intended recipient. It may contain confidential information that is
legally privileged or otherwise protected by law. If you have received
this communication in error, please notify me immediately by replying to
this message and please delete it from your computer. Thank you for
your cooperation.
>
>
> *
> * 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/
>
*
* 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/
*
* 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/