Chapter Contents

Previous

Next
COMAMID SCL Function

COMAMID SCL Function



Returns a string that contains all of the COMAMIDs that are valid for the operating system on which the SCL code executes.

Local and remote


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 (COMAMIDs) that are valid for the operating system on which the SCL code executes. Each value is separated by a blank. This function is useful for providing a list of COMAMIDs 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 COMAMIDs that are valid for the operating system on which this SCL program is executed. After that string is returned, one way to display the values would be in a listbox. Although this example does not include it, you would specify that the listbox 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;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.