Statalist The Stata Listserver

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

st: Preventing expansion of variable name with -confirm-

From   "Alex Ogan" <>
To   <>
Subject   st: Preventing expansion of variable name with -confirm-
Date   Fri, 7 Jul 2006 10:52:04 -0400

How can I prevent Stata from expanding an argument varlist?  This is the

. clear

. gen abc = .

. confirm variable b
variable b not found

. confirm variable abc

. confirm variable a

I want -confirm variable a- to have a non-zero return code, because the
variable name is not exactly "a".


This message is intended solely for the designated recipient(s). It may contain confidential or proprietary information and may be subject to confidentiality protections. If you are not a designated recipient, you may not review, copy, or distribute this message. If you receive this in error, please notify the sender by reply e-mail and delete this message. 

Arrowstreet Capital, L.P. is an Equal Opportunity Employer. 

*   For searches and help try:

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