Dear all,
I am writing a routine which subsets a number of files and -append-s them to a longitudinal dataset. This means that the program first selects one file, takes a subset of it and then -append-s it to the longitudinal dataset. Some of these files might not have some of the variables I would like to -keep- even thoguh most of them have all variables. When I execute the program, it stops whenever one variable is not in the -using- dataset. Is there a way to avoid Stata to stop and get it -keep- only the available variables?
Many thanks!
Riccardo
I am writing a routine which subsets a number of files and -append-s them to a longitudinal dataset. This means that the program first selects one file, takes a subset of it and then -append-s it to the longitudinal dataset. Some of these files might not have some of the variables I would like to -keep- even thoguh most of them have all variables. When I execute the program, it stops whenever one variable is not in the -using- dataset. Is there a way to avoid Stata to stop and get it -keep- only the available variables?
Many thanks!
Riccardo
Comment