![]() Chapter Contents |
![]() Previous |
![]() Next |
| VARLEN |
| Category: | Variable |
| Syntax | |
| Example | |
| See Also |
Syntax |
| length=VARLEN(table-id,var-num); |
Type: Numeric
Type: Numeric
Type: Numeric
| Example |
Obtain the length of the column ADDRESS in the SAS table MYDATA:
dsid=open('mydata','i');
if dsid then
do;
namelen=varlen(dsid,varnum(dsid,'address'));
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.