Chapter Contents

Previous

Next
SAS/AF Software: Class Dictionary

Specifying Data in a Scatter Control

To specify data for a Scatter control, use the dataSet or dataSetID attributes, or reference the SCL list that contains the data. Use the Scatter control's dataSource attribute to indicate the source of the data.

Attribute Specification
dataSet Specify the data set in the form libref.filename. You can use this attribute in the Properties sheet, or in SCL code.
dataSetID Specify the data set ID, which is the identifier returned by the open() method. The dataSetID attribute is useful when you want to create a subset of the data before using it. This attribute is only available in SCL code.
dataList Specify the SCL list that contains the data values. This attribute is only available in SCL code.

For information on using subsets of data, see Using Subsets of Data in a Scatter Control.

For example, the following code sets the dataSet attribute to Sashelp.Revhub:

scatter1.dataSource='dataset';
scatter1.dataset = 'sashelp.revhub';

In the following example, the data set is first subset for those revenues that are over $500,000:

dsid=open('sashelp.revhub');
rc=where(dsid,'revenue gt 500000');
scatter1.dataSource='datasetid';
scatter1.dataSetID=dsid;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.