By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,492 Members | 1,210 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,492 IT Pros & Developers. It's quick & easy.

Working out whether session is already active with IBM S/390 host

P: n/a

I'm using a PCOMM AutSess instantiated class to establish a session with an IBM host (S/390) from within an Excel spreadsheet using:


Not sure how long this session lasts. On subsequent reruns of the VB app (embedded in the spreadsheet), I get errors returned from the above method. Would seem that the session is still established/active. Even checking session.Started and session.Active gives errors.

Code extract checking session:
sessionID = connForm.SessionList.List(connForm.SessionList.Lis tIndex)
Set find_object = sessionDetails.FindConnectionByName(sessionID)
If find_object Is Nothing Then
If session Is Nothing Then
session.SetConnectionByName (Mid(sessionID, Len("Session ") + 1))
' session.SetConnectionByName (Mid(sessionID, Len("Session ") + 1))
' session.autECLOIA.WaitForAppAvailable
End If
End If

If (session.Started) And (session.Ready) Then
MsgBox ("Invalid session. Unable to establish session with " & Chr(34) & sessionID & Chr(34))
Exit Sub
End If

How do I work out whether a session is already present so I don't get this problem?
Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.