To determine a best server to which to route work:
IWMSRFSV CONNTKN=CTKN, X
APPLENV=AENAME, X
SERVER_DATA=SVRDATA, X
RETCODE=RC,RSNCODE=RSN
*
* Storage areas
*
CTKN DS F Contains the connect token for
* the current home space
AENAME DS CL32 Contains the application
* environment name
SVRDATA DS CL32 Contains the output server data
RC DS F Return code
RSN DS F Reason code