IOMOPERATE Procedure

Example 7: CONNECT and LIST Examples Using a Spawner

CONNECT and LIST Examples Using a Spawner

The following example demonstrates how you might use a combination of the LIST and CONNECT statements to connect to a SAS object spawner.
You can use LIST to obtain a list of the SAS servers that have been spawned on the local host:
PROC IOMOPERATE uri="iom://localhost:8581;Bridge;
				USER=mydomain\admin,PASS=********" type=OBJECTSPAWNER;
        LIST SPAWNED SERVERS;
QUIT;
 
SAS returns output similar to the following:
Server 0
    Logical name     : SASApp - Logical Stored Process Server
    Server component : SASApp - Stored Process Server
    Server class     : 15931E31-667F-11D5-8804-00C04F35AC8C
    Process owner    : admin@MYDOMAIN
    Server id        : E3D5D132-5DC0-46CB-A4FD-713098B1EE95
From the output, you can use the server ID to identify the server, and the TYPE= argument to specify that you want to connect to the object spawner:
PROC IOMOPERATE 
	uri="iom://localhost:8581;Bridge;
	USER=mydomain\admin,PASS=********" 
	type=OBJECTSPAWNER 
	spawned="E3D5D132-5DC0-46CB-A4FD-713098B1EE95";
LIST LOG;
LIST INFORMATION;
/* Other administration actions here */
QUIT;