Chapter Contents

Previous

Next
Data Set Model: _getColumnAttributes

Data Set Model: _getColumnAttributes



Returns the attributes for a column


Syntax
Details
Example

Syntax

CALL SEND (object-id, '_getColumnAttributes', list-id);

Argument Type Description
list-id
N specifies the identifier of an SCL list to contain the current column attributes


Details

This list must contain at least a single character item with an item name of NAME, the value of which must be a valid column name.

By default, all attributes are returned. To return only certain column attributes, include the appropriate named items in your list. See Column Attributes for more information on specific column attributes.

To return a single column attribute, use the _getColumnAttribute 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:
 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
   gattr=makelist();
   gattr=setnitemc(gattr, 'sex', 'name');
   call send(datid, '_getColumnAttributes',
             gattr);
   call putlist(gattr, 'All Attributes for SEX=', 0);
 Note about code
    rc=clearlist(gattr);
    gattr=setnitemc(gattr,'height','name');
    gattr=setnitemc(gattr,'4.1','format');
    call send(datid,'_setColumnAttributes',
              gattr);
 Note about code
   rc=clearlist(gattr);
   gattr=setnitemc(gattr, 'height', 'name');
   gattr=setnitemc(gattr, ' ', 'format');
   call send(datid, '_getColumnAttributes',
             gattr);
   call putlist(gattr, 'Format of Column HEIGHT=', 0);
   rc=dellist(gattr);
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.