Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

Re: st: ado file help

From   daniel klein <>
Subject   Re: st: ado file help
Date   Tue, 14 Aug 2012 00:26:40 +0200


please read the help file for -syntax- carefully. This is all clearly
documented. The help file reads

Standard Stata syntax is

      cmd [varlist | namelist | anything]
               [using filename]
               [= exp]
               [, options]

You should by now know, that "[...] square brackets distinguish
optional from required " elements (also see -help language-). So,
clearly -varlist-, -namelist- and -anything- are optional. Neither has
to be defined.

You can try this typing

pr foo
    di "foobar"


This will work.

The help file continues

"After the syntax command, options are returned to you in local macros
based on the first 31 letters of each option's name."

Meaning that in

, Foo(str)

whatever the user enters as <str> will be returned in local macro foo.


Sorry Nick, this doesn't help much.
1. Do we not need to define varlist/namelist/anything after syntax
2. How do you put it as macro in the query.
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index