Allocating from APPC mode groups with no available sessions
An application program can issue ALLOCATE commands for APPC sessions that can be satisfied in either of two ways.
- Only by a session in a particular mode group
- By a session in any mode group on the connection.
An operator can set the number of sessions in a modegroup, or close the modegroup to reduce the number of available sessions on an individual mode group to zero.
If an ALLOCATE for a particular mode group is issued when that mode group has no available sessions, the command is immediately rejected with the SYSIDERR condition.
If an ALLOCATE command is issued without specifying a particular mode group, and no mode groups on the connection have any sessions available, this command is immediately rejected with the SYSIDERR condition.
If a relevant mode group is still draining when an allocate request is received, the allocate is satisfied and added to the drain queue. An operator command to reduce the number of available sessions to zero does not complete until draining completes. In a very busy system allocating many sessions, this may mean that such modegroup operator commands take a long time to complete.