In my original dataset, I only have 20470 observations, why here it is doubled as 40940?
I don't think we here across the internet can answer that, you have to dig into your data set and code that created it and figure it out. I do know that if SAS says the data set has 40940 observations, then I believe SAS. In particular, you haven't showed us anything that leads me to believe you have only 20470 observations.
As far as identifying outliers from the Extreme Observations table, you can, in PROC UNIVARIATE, use the ID statement which then replaces the observation number in that output with the value of some variable (for example, date, or patient ID, or similar), making the outlier easier to identify.
--
Paige Miller