Introduction to Adding Variables to a DataObject

In previous chapters, you learned how to open a data set and how to call a SAS procedure by using the SUBMIT and ENDSUBMIT statements. This chapter shows you how to read observation-wise statistics from the output data set of a procedure, and how to add these variables to the DataObject so that you can visualize the results.

The program statements in this chapter are distributed with SAS/IML Studio. To open the program that contains the statements:

  1. Select FileOpenFile from the main menu.

  2. Click Go to Installation directory near the bottom of the dialog box.

  3. Navigate to the Programs\Doc\STATGuide folder.

  4. Select the AddVar.sx file.

  5. Click Open.