Previous Page | Next Page

SAS Component Language (SCL) Functions and Options

COMAMID SCL 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.
Client: Optional
Server: Optional

Syntax
Syntax Description
Example

Syntax

cval=COMAMID();

Syntax Description

cval

a string that contains all of the communications access methods that are valid for the specific operating system.

Details

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;

Previous Page | Next Page | Top of Page