I'm wondering if I'm getting confused between the LU name and the LUA_SID number.
It is considered good practice for an LUA application to specify the POOL name at the beginning of the conversation, and than would use the LUA_SID in subsequent LUA calls.
In other words, if you start a conversation with RUI_INIT or SLI_OPEN with an LUA pool, you would normally specify the pool name with the lua_luname member. Subsequently, in the same conversation, you would normally use the lua_sid member returned from RUI_INIT or SLI_OPEN to specify the conversation.
Hmm. I suspect any one of a number of programming techniques could be used to establish that a new conversation has been initiated - e.g. save the lua_sid.
When you issue RUI_INIT or SLI_OPEN, the lua_luname member contains the actual name of the LU used. This might also be useful in keeping "buffered" data from being mistaken for dat from a valid conversation.
Your questions and my answers seem to be a bit orthogonal, still. Let me know if this is helping.
--------------------------------------------------------------------------------