Statalist


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

Re: st: Problem with ado file - stcmd


From   "Eva Poen" <[email protected]>
To   [email protected]
Subject   Re: st: Problem with ado file - stcmd
Date   Thu, 6 Dec 2007 15:11:27 +0000

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index