Statalist


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

st: RE: How to rename an ado file within Stata


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: How to rename an ado file within Stata
Date   Fri, 23 Nov 2007 18:34:46 -0000

I don't quite understand what you are trying to do, but 
this tactic appears pointless to me, as you may have 
discovered by now. 

An ado file contains code to be interpreted by Stata. There is 
no way that renaming it will make it a stand-alone executable. 

If that were possible it would be very well publicised, 
as many people would find it immensely useful. 

As it is, an .ado file is no use outside Stata and 
unless it has an .ado (or just possibly a .do) extension. 
Even compiled Mata files have no use outside Stata. 

Nick
[email protected] 

[email protected]

Is it possible to rename an ado file within Stata?

I am working on a exact test that, unfortunately, does not have any
known algorithm to optimize the time required to compute all possible
permutations. As Stata loads everything into memory and I do not know
mata functions yet, it seems impossible to compute all possible
permutations with Stata, since it requires too much time and memmory.

So, I wrote a perl program that can rapidly generate all possible
combinations without overflowing.

Despite to the fact I can use shell/winexec  to execute it, I would like
to know if one can rename an ado file (.ado to .exe) for instance within
Stata, so that one does not need to specify a directory to run the
"auxiliary" program. I think that, if possible, by renaming an ado file,
one does not need to specify a directory, because Stata is suppose to
find it out. Does it make sense?

Regards,

Tiago





*
*   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