Chapter Contents

Previous

Next
Data Set Model: _getColumnAttribute

Data Set Model: _getColumnAttribute



Returns a single attribute for a column


Syntax
Details
Example

Syntax

CALL SEND (object-id, '_getColumnAttribute', col-name, attr-name, attr-value);

Argument Type Description
col-name
C specifies the name of the column from which to get the attribute
attr-name
C specifies the name of the column attribute
attr-value
C | N returns the value of the column attribute


Details

The type of attr-value must match the type of the attribute to be returned. For more information about the appropriate attribute names, see Column Attributes.

To return more than one column attribute, use the _getColumnAttributes method.


Example

In the following example, the Data Set Model class is being used as a stand-alone model, that is, the model class is not being used with a data form or data table object.

This example is written as a stand-alone SCL entry:

length cvalue $10;
 Note about code
INIT:
   datcl=loadclass('sashelp.fsp.datast_m.class');
   datid=instance(datcl);
 Note about code
   call send(datid, '_setDataset',
            'sasuser.class');
 Note about code
   call send(datid, '_getColumnAttribute',
            'sex', 'type', cvalue);
   put 'The type of the SEX column=' cvalue;
 Note about code
   call send(datid, '_getColumnAttribute',
             'age', 'length', nvalue);
   put 'The length of the AGE column=' nvalue;
return;
 Note about code
TERM:
   call send(datid,'_term');
 return;


Chapter Contents

Previous

Next

Top of Page

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