SAS FAQ How do I do simple random sampling with or without replacement using proc surveyselect?
Sometimes you may be analyzing a very large data file and want to work with just a simple random sample of the data file. Other times you may want to draw a simple random sample with replacement from a small data file. Either way, SAS proc surveyselect is one way to do it and it is fairly straightforward. Let’s use the following data set for the purpose of demonstration.