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

st: Batch or interactive?

From   "Sergiy Radyakin" <>
To   "" <>
Subject   st: Batch or interactive?
Date   Fri, 1 Feb 2008 14:07:15 -0500

Hello Statalisters,

sometimes ago there was a question "Does a .do-file know it's name?",
the answer to which seems to be "no". I have a somewhat related
question: "Does an .ado file know whether it was launched from a
command line, or from within a .do or an .ado file?"

Why do I want to know? I want to vary the amount of output and it's
presentation, depending on whether the user has launched the command
at is stearing at the screen, or whether the results are supposed to
be archived somewhere in the logs.

I know I can have a an option to control this. The question implies no
change in syntax.

Any ideas?

Best regards,
  Sergiy Radyakin
*   For searches and help try:

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