FEPI ALLOCATE POOL establishes a new FEPI conversation with a target application, acquiring a session from the named pool to use for the conversation. The conversation has the properties, particularly the mode (SLU2 or SLU P) and data format (data stream or formatted), specified for the pool that is used: some of the properties can be queried using FEPI EXTRACT CONV.
The command completes immediately if, in the named POOL, a suitable session has been established and is not in use. Otherwise the request waits for a session to become available. A time limit can be set for this wait.
FEPI ALLOCATE POOL >>-FEPI ALLOCATE--POOL(data-value)--CONVID(data-area)-----------> >--+--------------------+--+---------------------+--------------> '-TARGET(data-value)-' '-TIMEOUT(data-value)-' >--+---------------------+--+----------------------+------------> '-SEQNUMIN(data-area)-' '-SEQNUMOUT(data-area)-' >--+-------------------+--------------------------------------->< '-SESSNSTATUS(cvda)-'
If an INVREQ condition is returned, it can have the following RESP2 values: