You must use `" "'
that is,
` left single quote
" double quote
whatever text
" double quote
' right single quote.
Nick
[email protected]
Douglas Crawford
> Thanks Nick, I have read but little understood the quotation nesting
> guidelines.
>
> I tried your suggestion, but when I surround the double
> quotes with `' the
> command is not executed. And when I tried the same on the
> quotes for the
> two string variables (e.g. inlist(var3, `"string1"',
> `"string2"')) it said
> "too few quotes").
>
> I can get the results I need with by encoding the string
> variable, but if
> you see my error it may really help in the future (and
> simplify these do
> files as well).
*
* 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/