PCOMM is not responding to calls from VBA.



Post anything related to mainframes (IBM & UNISYS) if not fit in any of the above categories

PCOMM is not responding to calls from VBA.

Postby PuddinPie » Tue Apr 30, 2013 8:39 pm

Hello I have some VBA coding that works fine in XP but in Win 7 it does not work. It's happening after the PCOMM window object call which opens a mainframes window but fails when waiting for ready.

Set autECLPSObj = CreateObject("PCOMM.autECLPS")
Set autECLConnList = CreateObject("PCOMM.autECLConnList")
Set objECLConnMgr = CreateObject("PCOMM.autECLConnMgr")
Set autECLOIAObj = CreateObject("PCOMM.autECLOIA")
autECLOIAObj.SetConnectionByName ("T")
objECLConnMgr.StartConnection ("Profile=C:\EU_APP\CLCAPSummary\CLCAPSummary ConnName=T WinState=Min")
autECLPSObj.SetConnectionByName ("T")

autECLConnList.Refresh

' Checks to see if a mainframe window is open.
Do While strReadyResault = 0
If autECLPSObj.Started = False Then
  WaitTime (2)
Else
    If autECLPSObj.Ready Then
    strReadyResault = 1
    WaitTime (1)
    Else
        WaitTime (2)
    End If
End If

Loop

' Access's CICS and checkes that its on the correct screen.
autECLOIAObj.WaitForInputReady
autECLPSObj.SetCursorPos 22, 2
autECLPSObj.SendKeys "CICS"
autECLOIAObj.WaitForInputReady
autECLPSObj.SendKeys "[enter]"
autECLOIAObj.WaitForInputReady


It stops at
autECLOIAObj.WaitForInputReady


If I REM that out and let it continue it set the cursor position but then stops again at
autECLPSObj.SendKeys "CICS"
.

Any help would be greatly appreciated.

Thank you.
PuddinPie
 
Posts: 20
Joined: Wed Sep 15, 2010 1:51 am
Has thanked: 0 time
Been thanked: 0 time

Re: PCOMM is not responding to calls from VBA.

 

Re: PCOMM is not responding to calls from VBA.

Postby dick scherrer » Tue Apr 30, 2013 10:23 pm

Suggest you open an issue with PCOMM support.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: PCOMM is not responding to calls from VBA.

Postby Ed Goodman » Wed May 01, 2013 6:06 pm

Do you see the emulator start up? I'm trying to figure out if the object is actually being created.

Win 7 does some 'look aside' protection of programs, so the object may be manipulating something that the actual running program isn't using. More likely, you'll need a new object definition for Win7.

Found this:
http://social.technet.microsoft.com/For ... 3dc0c53bc/
Ed Goodman
 
Posts: 342
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times

Re: PCOMM is not responding to calls from VBA.

Postby PuddinPie » Thu Jan 30, 2014 10:41 pm

This was actualy a version issue which has been resolved in 6.0.6
PuddinPie
 
Posts: 20
Joined: Wed Sep 15, 2010 1:51 am
Has thanked: 0 time
Been thanked: 0 time

Re: PCOMM is not responding to calls from VBA.

Postby dick scherrer » Fri Jan 31, 2014 12:44 am

Thanks for the update - i'm sure others will have the same "opportunity" :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to All other Mainframe Topics

 


  • Related topics
    Replies
    Views
    Last post