I would like to get the list of all variables except five variables that might be in my dataset. When one of them are not, I get an error. So I used the capture command, but the problem is that I have to do all combinations of those five variables being in my list. To ilustrate it, imagine I want to get the list of all varibles, except two, I would have to go:
capture noisily confirm variable var1
if !_rc {
capture noisily confirm variable var2
if !_rc {
ds var1 var2, not
}
ds var1, not
}
else {
capture capture noisily confirm variable var2
if !_rc {
ds var2, not
else {
ds
}
Imagine to it for five variables, instead of two! It would me mad!
Please someone help me!
capture noisily confirm variable var1
if !_rc {
capture noisily confirm variable var2
if !_rc {
ds var1 var2, not
}
ds var1, not
}
else {
capture capture noisily confirm variable var2
if !_rc {
ds var2, not
else {
ds
}
Imagine to it for five variables, instead of two! It would me mad!
Please someone help me!
Comment