Saving Output to SAS Data Sets

Many investment specifications have a button that reads Save Data As. Clicking that button opens the Save Output Dataset dialog box (see Figure 58.1). This dialog box enables you to save all or part of the area generated by the specification.

Figure 58.1: Saving to a Dataset


The following items are displayed:

Dataset Name holds the SAS data set name to which you want to save.

Browse opens the standard SAS Open dialog box, which enables you to select an existing SAS data set to overwrite.

Dataset Label holds the SAS data set’s label.

Dataset Variables organizes variables. The variables listed in the Selected area will be included in the SAS data set.

  • You can select variables one at a time, by clicking the single right-arrow after each selection to move it to the Selected area.

  • If the desired SAS data set has many variables you want to save, it may be simpler to follow these steps:

    1. Click the double right-arrow to select all available variables.

    2. Remove any unwanted variable by selecting it from the Selected area and clicking the single left-arrow.

  • The double left-arrow removes all selected variables from the proposed SAS data set.

  • The up and down arrows below the Available and Selected boxes enable you to scroll up and down the list of variables in their respective boxes.

Save Dataset attempts to save the SAS data set. If the SAS data set name exists, you are asked if you want to replace the existing SAS data set, append to the existing SAS data set, or cancel the current save attempt. You then return to this dialog box ready to create another SAS data set to save.

Return takes you back to the specification dialog box.