SAS Component Language (SCL) Functions and Options |
Client: | Optional |
Server: | Optional |
Syntax | |
Syntax Description | |
Example |
Syntax |
cval=COMAMID(); |
a string that contains all of the communications access methods that are valid for the specific operating system.
The COMAMID function returns a string that contains all of the communications access methods that are valid for the operating environment that the SCL code executes under. Each value is separated by a blank. This function is useful for providing a list of communications access methods for users. The list is displayed as determined by the developer. The function merely returns a string of values.
Example |
The following program fragment gets the string of communications access methods that are valid for the operating environment that this SCL program executes under. After the string is returned, one way to display the values would be in a list box. Although this example does not include it, you would specify that the list box be filled with the text string cval.
comlist=makelist(); str=comamid(); do i=1 to 10; com=scan(str,i,' '); if com^=' ' then comlist=insertc(comlist,com,i); end;
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.