[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Insheet question
My copy of the User's Guide includes a list of reserved
names at [U] 14.3. "if" is not allowed as a variable name.
A variable name, like other names, must not exceed 32 characters
in length. The other rules for names are at the same place.
> I'm trying to read a tab delimited file into a Stata (Intercooled
> 8.2) data set using insheet. It's fairly large (3800+ observations,
> 424 variables) and the first line contains the variable names.
> Without the variable name line Stata reads it in fine, but with the
> variable name line I get a
> "if invalid varname
> error in line 1 of file"
> error message. I've looked at the variable names, but I don't see
> anything obviously wrong, and the Stata help file doesn't say much
> about what constitutes valid variable names, nor is the User's Guide
> overwhelmingly informative on this issue. Anyone know what the
> maximum length for a variable name is? Any other common pitfalls
> unique to Stata I should look for?
* For searches and help try: