![]() Chapter Contents |
![]() Previous |
![]() Next |
| VARLABEL |
| Category: | Variable |
| Syntax | |
| Details | |
| Example | |
| See Also |
Syntax |
| cval=VARLABEL(table-id,var-num); |
Type: Character
Type: Numeric
Type: Numeric
| Details |
If no label has been assigned to the column, a blank string is returned.
| Example |
Obtain the label of the column NAME in the SAS table MYDATA:
length lab $ 40;
dsid=open('mydata','i');
if dsid then
do;
lab=varlabel(dsid,varnum(dsid,'name'));
rc=close(dsid);
end;
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.