Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: What's wrong with this "For" command?

From   FF NN <>
Subject   st: What's wrong with this "For" command?
Date   Mon, 29 Sep 2003 19:17:33 -0700 (PDT)

Dear Statalists,
I met some confusing problem and refered to the
reference book but haven't got any clue yet.

Here's my code in the do file:

gen last_occu=ro_jcd01 
for ro_jcd02-ro_jcd10 : last_occu=@ if @!=. 

Everytime the computer told me:
"ro_jcd02-ro_jcd10" invalid list type 
while these are valid variables in my dataset

I appreicate your help very much.


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
*   For searches and help try:

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