Bookmark and Share

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


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

st: charlist syntax error


From   Martyn Sherriff <[email protected]>
To   [email protected]
Subject   st: charlist syntax error
Date   Fri, 28 Feb 2014 12:48:18 +0000

I regularly use charlist (SSC NJC 1.1.0 17 Dec 2002 ) to screen data
for strings in supposedly numeric data and I am getting a syntax error
with the following variable:
.d x35
x35             str3    %9s

. charlist x35
invalid syntax
r(198);

I can detect the errant characters:
. list x35 if missing(real(x35))

     +-----+
      | x35 |
      |-----   |
 53. | 29n |
 63. |  6`   |
      +-----+

I would be grateful if somebody could suggest what I am doing
incorrectly with charlist (it works with other variables in the
dataset).

Stata 13.

Thank you.

Martyn
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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