Example: Creating a Random Sample of the Sashelp.Pricedata Data Set

In this example, you want to create a subset of the data in the Sashelp.Pricedata data set.
To create this example:
  1. In the Tasks section, expand the Data folder, and then double-click Select Random Sample. The user interface for the Select Random Sample task opens.
  2. On the Data tab, select the SASHELP.PRICEDATA data set.
    Tip
    If the data set is not available from the drop-down list, click Select a table icon. In the Choose a Table window, expand the library that contains the data set that you want to use. Select the data set for the example and click OK. The selected data set should now appear in the drop-down list.
  3. On the Options tab, enter 10 as the sample size.
  4. To run the task, click Submit SAS Code Icon.
Here are the results:
Results from the SURVEYSELECT Procedure
The task also creates a sample data set in the Work library. In SAS Studio, this data set opens on the Output Data tab.
Ten Sample Rows from the Sashelp.Pricedata Data Set