Thank you. I just read one paper, it showed that SAS macro can solved this problem. However, it is not working good in my pc. (This is the link. https://www.mwsug.org/proceedings/2011/pharma/MWSUG-2011-PH03.pdf) I also copied the beginning part of the codeing in the following. Is there any possible, you could explain me in detail how to inuput the xlsfile, indata, outfile path to my macro? I tried to create new excels in my D drive, and did like this : %macro onedata (xlsfile=D:\Scorecard Jinbo\input, indata=training_dataset, outfile=D:\Scorecard Jinbo\, trim=0.1); but not success. Could you help me about this? The coding: /******User guide****** xlsfile: Input the path and excel file name which the missing and outlier is output to. indata: Input the data name which you want to check. outfile: Input the path and file name for rtf report. trim: Input the percentage you want to trim when calculate mean and SD. ***********************************************************/; /********** Check for one dataset**********/ ods listing close; %macro onedata (xlsfile=, indata=, outfile=, trim=); /*Create content table*/ proc contents data=&indata out=tmp(keep=memname name type label); run; /*Check frequency for Character variable, mean for numerical variable*/ /*Get the number of character and numerical variable*/ proc freq data=tmp; table type; ods output Freq.Table1.OneWayFreqs=tmp1(keep=type frequency); run;
... View more