version 15.0 clear all set more off set linesize 220 capture log close _all cd "C:/Users/cattom/Documents/econometrics/Week8" log using "input_inspection_details.log", text replace foreach f in "FININDRATIO_OLD_5938AD12016_(锐思).xls" "CG_Ybasic1999-2012.xls" "CG_Ybasic2013-2014.xls" { display "===== FILE: `f' =====" import excel using "data/`f'", describe import excel using "data/`f'", clear allstring describe list in 1/6, noobs clean count } display "INSPECTION_COMPLETED" log close exit, clear