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: Search Notes

From   Nick Cox <>
Subject   Re: st: Search Notes
Date   Wed, 31 Oct 2012 18:27:31 +0000

You've got the syntax backwards below. You type -note- or -notes-
first. If you really type -mpg note- it won't work (unless bizarrely
you have defined a program -mpg-).

We still need, minimally, an example of what you really typed, and
ideally something that we can test ourselves.

As the FAQ advises (see )

"Say exactly what you typed and exactly what Stata typed (or did) in
response. N.B. exactly! If you can, reproduce the error with one of
Stata's provided datasets or a simple concocted dataset that you
include in your posting."


On Wed, Oct 31, 2012 at 6:03 PM, Pedro Nakashima
<> wrote:
> Let's say we are using the example presented by -help notes-with an
> additional note:
>          . mpg note: is the 41 to mistake? Ask Bob.
>          . mpg note: what about the two missing values?
>          . mpg note: Pedro Nakashima
> When we looked for the last one..
>          . search notes Nakashima
> we can find it ...
>          mpg:
>            One. Pedro Nakashima
> But to another database (previously saved), if we
>          . anyvariable note: this is the first note
>          . anyvariable note: this is the second note
>          . anyvariable note: Pedro Nakashima
> and also
>          . search notes Nakashima
> the result is
>     not found
> there's nothing in either -help notes- or statalist posts that
> explains this kind of error..
> 2012/10/30 Nick Cox <>:
>> It is difficult to say what you are doing wrong. You need to show us
>> code in which you create a -note- and then can't find it. Did you
>> forget to -save- the dataset after creating a -note- and are looking
>> for it in a different session?
>> Nick
>> On Tue, Oct 30, 2012 at 11:49 PM, Pedro Nakashima
>> <> wrote:
>>> I'm using Stata 12.
>>> I'm looking for notes at my dataset with exactly the same syntax
>>> specified in the help for -notes- (-notes search-), but it always
>>> returns "not found" after the execution of the command .
>>> The strange thing is that when I write the same notes and then look
>>> for them in the sample dataset (auto.dta), the notes are found.
*   For searches and help try:

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