![]() Chapter Contents |
![]() Previous |
![]() Next |
| VARTYPE |
| Category: | Variable |
| Syntax | |
| Example | |
| See Also |
Syntax |
| type=VARTYPE(table-id,var-num); |
| C | character column |
| N | numeric column |
Type: Character
Type: Numeric
Type: Numeric
| Example |
Place the first five numeric columns of the SAS table MYDATA into an SCL variable:
length varlist $ 44;
dsid=open('mydata','i');
varlist=' ';
j=0;
do i=1 to nvar(dsid) while (j<5);
if (vartype(dsid,i)='N') then
do;
varlist=varlist||' '||varname(dsid,i);
j+1;
end;
end;
rc=close(dsid);
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.