![]() Chapter Contents |
![]() Previous |
![]() Next |
| DEVLIST |
| Category: | Selection List |
| Syntax | |
| Details | |
| Examples | |
| Example 1: Displaying the Printer Devices of a Catalog | |
| Example 2: Using the Results of a DEVLIST | |
| See Also | |
Syntax |
|
selections=DEVLIST(catalog-name,device<,message
<,autoclose<,num-sel>>>); |
'CAMERA''DEFAULT''EXPORT''MONITOR''PLOTTER''PRINTER'
'Y' |
closes the window automatically. (This is the default.) |
'N' |
leaves the window open until the user explicitly closes it. |
| Details |
| Examples |
select=devlist('sashelp.devices','printer',
'Select a device.');
descript=substr(select,1,40);
device=substr(select,41,8);
devtype=substr(select,49,8);
Use the current result list to process multiple selections:
listid=makelist();
rc=curlist(listid);
selection=devlist('sashelp.devices','printer',
'Select a device',' ',3);
n=getnitemn(listid,'COUNT');
do i=1 to n;
descript=getnitemc(listid,'DESC',i);
device=getnitemc(listid,'DEVICE',i);
devtype=getnitemc(listid,'TYPE',i);
put descript= device= devtype=;
end;
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.