1. nostop
Syntax
{do|run} filename [arguments] [, nostop ]
nostop allows the do-file to continue executing even if an error occurs.
Normally, Stata stops executing the do-file when it detects an error
(nonzero return code).
2. capture
**************
clear*
inp x
1
2
2
2
end
gen error=0
forv i=1/4{
capt assert x==1 in `i'
di in red _rc
replace error=_rc in `i'
}
l
**************