Are you trying to trim or Winsorize each variable? If so, please read "Winsorization: The good, the bad, and the ugly," which discusses the statistical implications of getting rid of extreme values. If you decide to proceed and Winsorize your data, the article also contains links to a second article about how to Winsorize, and you can easily modify it to replace extreme values with missing values.
If you only want the trimmed or Winsorized means and StdDev, you can use the ROBUSTSCALE option, the TRIMMED= option, and the WINSORIZED= option to obtain robust estimates without modifying the original data.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.