Here are some simple ways to extract various types of random samples from SAS datasets, using only base SAS.
Sampling without replacement.
A simple way to select N random elements from a dataset without replacement is to first randomly permute the dataset, and then take the first N elements of the permuted dataset. The process of permuting [...]