Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: Re: AW: display _request(macname)


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: Re: AW: display _request(macname)
Date   Wed, 3 Feb 2010 16:29:59 +0100

<> 

The -_request()- should work, though:


*************
//my do file

dis in r "Alpha pls! " _request(alpha)
ma di
di in r "$alpha"
*************

You may have overlooked the fact that you end up with a -global- unless you
provide an underscore in the request. See [P], page 102.


HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Carl
Mastropaolo
Gesendet: Mittwoch, 3. Februar 2010 16:20
An: [email protected]
Betreff: st: Re: AW: display _request(macname)

Thank you Martin.  I will check this out.

Carl


----- Original Message ----- 
From: "Martin Weiss" <[email protected]>
To: <[email protected]>
Sent: Wednesday, February 03, 2010 10:17 AM
Subject: st: AW: display _request(macname)



<>


Why even bother to use -_request-? You could simply pass this as an argument
to the -do- command, as in [U], section 16.4.



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Carl
Mastropaolo
Gesendet: Mittwoch, 3. Februar 2010 16:13
An: [email protected]
Betreff: st: display _request(macname)

Hi

I am modifying a .do file graciously sent by Tirthankar so that the .do file

requests the alpha value to be applied for a specific analysis.  I would
like to run the file and then enter an alpha value at will using the command

on the console.

I am using the display _request command.  Execution of the command stops the

.do file, as it should, awaiting the entered value for alpha.  After I enter

the alpha value, the .do file runs to completion perfectly except it always
uses an alpha value which I had previously entered.  If I start anew with a
fresh STATA session, running the .do file, even after entering a value at
the prompt, results in the error message "alpha not found".

Obviously, the value I am entering on the console is not being preserved by
STATA.

Any help?

Thanx,
Carl

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

__________ Information from ESET NOD32 Antivirus, version of virus signature

database 4831 (20100203) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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