Stata Capture

The capture command runs commands while suppressing the output and capturing the return code.


Usage

capture assert errors==0
if (_rc!=0) {
  display "There are errors!"
}

to prevent output from being suppressed, try capture noisily ....


See also

Stata manual for capture


CategoryRicottone

Stata/Capture (last edited 2023-06-08 20:41:34 by DominicRicottone)