capture confirm file titanium.dta if _rc { if _rc==601 { display "the file does not exist" } else { * all other cases display "there was an error with return code " _rc } }