When attempting to find a free LU across more than one local node, the application does not need to be aware of which local node owns the LU. The DL-BASE is responsible for finding a suitable local node, using the mechanism described below. This mechanism need not concern the application; the description is intended to assist in interpreting traces of the message flows involved.
The open force type field in the Open(SSCP) Request specifies either a forced or nonforced Open. If the LU for which the Open is intended does not have an active SSCP session because its link is inactive, a forced Open instructs the local node to attempt to activate the link and the SSCP session; a nonforced Open succeeds only if the SSCP session is already active, and otherwise returns with an error code indicating the state of the LU's connection.
When the application issues the Open(SSCP) Request, it does not set the open force type field. The DL-BASE then issues a nonforced Open to each node in turn until it finds an LU that already has an active SSCP session. If none of these Opens succeeds, the DL-BASE issues a forced Open to the node that returned the "best" error code—that is, the one most likely to be able to activate the session.
The sample message flows in the following figure illustrate this process for two local nodes. The DL-BASE tries each in turn, using nonforced Opens; the error code from node #2 indicates that it is more likely to be able to activate the SSCP session than node #1, so the DL-BASE sends a forced Open to node #2. The application is aware only of the first request and its response.
To allow applications to restart after a disastrous failure (such as terminating the 3270 emulation program), the local node will also accept an Open(SSCP) Request from an application that has failed and restarts (providing the same source LPI fields are used). In this case a TERM-SELF message is sent to the host if the LU is bound.
The SNA Server LU through which the application communicates is selected by the relationship between the APPL record and the LU or LU group record in the configuration file. The application specifies its name using the source name field on the Open(SSCP) Request; the local node fills in the LU or LU group number, selects an unused LU within the LU group (if the association is to an LU group), and informs the application of this LU number on the Open(SSCP) OK Response.
The Open(SSCP) Request specifies:
The Open(SSCP) Request can fail for one of several reasons, which can be determined from the error codes on the Open(SSCP) Error Response sent to the application: