Jump to content

Recommended Posts

Posted

Good day to the members of the forum.. 

Is there any UDF that is available to automate Attachmate Extra Mainframe sessions?

I am trying to automate mainframe processes. I couldn't get values from particular co-ordinates in mainframe or pass values to particular co-ordinates in mainframe.

Please let me know if there is any UDF or any other kind of solution is available. 

Thanks and regards,

Gowrisankar R.

Posted
  On 3/30/2017 at 11:34 AM, Gowrisankar said:

Attachmate Extra Mainframe sessions

Expand  

Do you think about this ?

http://docs.attachmate.com/extra/x-treme/apis/com/

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

Yes mLipok, This is exactly what I'm looking for. I tried it.. Its working for me. Thanks a lot...

But I couldn't figure how to send waithostquiet. I tried the following. But it didn't work.

$Sess0.Screen.WaitHostQuiet(3000) ; A WAIT HOST QUIET TIME OF 3 SECONDS

Can you please advice?

Edited by Gowrisankar
Posted (edited)

Make a small testing script for connecting and showing your problem. (of coruse without license keys)

Post it here.

And post link to related part of Reference/Documentation on the developer page.

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

The following is my code mLipok.. 

 

#include <MsgBoxConstants.au3>

Global $g_HostSettleTime

Global $Sessions
Global $System
Global $SessionName
Global $Sess0

Main()

Func Main()

   $System = ObjCreate("EXTRA.System")
   If Not IsObj($System) Then
      MsgBox($MB_ICONERROR, "Error", "Could not create the EXTRA System object.  Stopping macro playback.")
      Exit
   EndIf

   $Sessions = $System.Sessions
   If Not IsObj($Sessions) Then
      MsgBox($MB_ICONERROR, "Error", "Could not create the Sessions collection object.  Stopping macro playback.")
      Exit
   EndIf

   $g_HostSettleTime = 5000
   $OldSystemTimeout = $System.TimeoutValue
   If $g_HostSettleTime > $OldSystemTimeout Then $System.TimeoutValue = $g_HostSettleTime

   $SessionName = "NameOfMainframeSession.EDP"
   $Sess0 = $Sessions.Open($SessionName)

   If Not IsObj($Sess0) Then
      MsgBox($MB_ICONERROR, "Error", "Could not create the Session object.  Stopping macro playback.")
      Exit
   EndIf
   If Not $Sess0.Visible Then $Sess0.Visible = True


   $Sess0.Screen.Putstring("ISM", 23, 48)
   $Sess0.Screen.WaitHostQuiet($g_HostSettleTime)
   $Sess0.Screen.Sendkeys("<ENTER>")
   $Sess0.Screen.WaitHostQuiet($g_HostSettleTime)

EndFunc

I couldn't show any error message. Because there is no error message populated. The code runs without considering the WaitHostQuiet.

 

Posted

How this works ?
You are connecting to the object which exist and is authorized (license) only when you have running normal standalone GUI APP (manufacutred by dev team) ?
If so I suppose that connecting process is made by hand ?

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

I'm sorry I couldn't understand your question mLipok.. 

The mainframe sessions are installed in my computer and I am given access to the sessions. 

Edited by Gowrisankar
Posted (edited)
  On 3/30/2017 at 1:50 PM, Gowrisankar said:

The mainframe sessions are installed in my computer and I am given access to the sessions. 

Expand  

How you start connection ?
Via script or separate GUI based APP ?
 

Sorry for all my questions but I do not have time for reading docs for this AcitveX Object.

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

ok
So as I suppose you are connecting here:

$SessionName = "NameOfMainframeSession.EDP"
   $Sess0 = $Sessions.Open($SessionName)

 

 

  On 3/30/2017 at 1:36 PM, Gowrisankar said:

I couldn't show any error message. Because there is no error message populated. The code runs without considering the WaitHostQuiet.

Expand  

I do not see you any COM Error Handler you should add one.

Read about:

ObjEvent()

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • 2 weeks later...
Posted

Hello.
I'm intrested in, did you do any progress ?

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...