Chapter Contents

Previous

Next
SAS Data File: _getVariable

SAS Data File: _getVariable



Creates and returns a SAS Variable object identifier corresponding to a variable contained in a SAS Data File object


Syntax
Details
Example

Syntax

CALL SEND (datafile-object-id, '_getVariable', variable-name, variable-object-id);

Argument Type Description
variable-name
C specifies the name of a variable contained in datafile-object-id
variable-object-id
N returns the object identifier of a SAS Variable object corresponding to variable-name


Details

Once you have the object identifier for the SAS Variable object, you can use methods from the SAS Variable class on the SAS Variable object.


Example

This example returns the SAS Variable object identifier for the SAS variable, AGE, into VAROBJ. AGE is a variable in SASUSER.FITNESS.

varname='age';
call send (dfile, '_setup_', 
           'sasuser.fitness');
call send (dfile, '_get_variable_',
           varname, varobj);


Chapter Contents

Previous

Next

Top of Page

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