set more off /* turn off paging */ use /eds/datasets/sample-progs/data/test /* bring in a stata dataset */ describe /* what's in it? */ /* check codings of status */ /* if assert fails, list problems */ /* "capture" allows us to test */ /* the return code but not stop */ capture assert status==1 | status==2 if _rc==9 { list id fname lname status if status > 2 | status == . } set more on /* turn paging back on */ clear /* clear memory */ exit /* exit the program */