Aha! I got another reply on the ooRexx help list and this works: connList = .OLEObject~new("PCOMM.autECLConnList") conn = connList~FindConnectionByName("A") say conn~name conn~connType conn~codepage conn~started conn~ready
This results in: C:\Users\myname\Documents\testdir >rexx testhacl.rex A DISP3270 1047 1 1 At least I have a learning path to follow now (HACL has a LOT of functions/methods), so thank you very much. Now I can use a language I already know for the functional structure and set up the automation I need. Still a lot to learn, but that's the job. Peter -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Farley, Peter Sent: Friday, June 30, 2023 11:14 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Using EHLLAPI from ooRexx No luck I am afraid: 5 *-* str = autECLConnList(1)~Name Error 43 running C:\Users\myname\Documents\testdir\testhacl.rex line 5: Routine not found. Error 43.1: Could not find routine "AUTECLCONNLIST". -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Rony G. Flatscher Sent: Friday, June 30, 2023 3:46 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Using EHLLAPI from ooRexx Just noted that the mailer ruined the syntax: autoECLConnList = .OleObject~new("PCOMM.autECLConnList") autoECLConnList~Refresh str = autECLConnList(1)~Name ---rony On 30.06.2023 09:22, Rony G. Flatscher wrote: > On 30.06.2023 08:46, Farley, Peter wrote: >> Thanks for the link David, but that seems to be tied intimately to >> x3270, and I need it to work with PCOMM. >> >> Also investigating PCOMM HACL (Host Access Class Library) as an >> alternative, using VBScript (<*Sigh*>, yet another language to learn). > > Judging from > <https://urldefense.com/v3/__https://www.ibm.com/docs/en/personal-comm > unications/15.0?topic=SSEQ5Y_15.0.0*com.ibm.pcomm.doc*books*html*host_access08.html__;Ly8vLw!!Ebr-cpPeAnfNniQ8HSAI-g_K5b7VKg!OHS9_k-XSvFBFZyLGLsofx1K3_bpc7Pb70Zhae2AclS3_irQqT4UewjjkGikadAo6rgTf_y3zKD0tgb45uP95EcVnD0QEVU4$ > > there are OLE APIs which should allow you to use the Windows version of > ooRexx as it supports OLE. > That is the reason why you can code in ooRexx for MS Excel, MS Word, > MS Powerpoint and the like, just look up the ooRexx samples in > "ooRexx\samples\ole\apps" where you would see also samples for > OpenOffice/LibreOffice via OLE. > > So looking at the VBA example: > > |Dim Str as String Dim autECLConnList as Object Dim Num as Long Set > autECLConnList = > CreateObject("PCOMM.autECLConnList") autECLConnList.Refresh Str = > autECLConnList(1).Name| > > try the following in ooRexx: > > autoECLConnList = .OleObject~new(|PCOMM.autECLConnList")| > autoECLConnList~Refresh > str = autECLConnList(1)~Name > > Does that work for you? > > ---rony > >> -----Original Message----- >> From: IBM Mainframe Discussion List<IBM-MAIN@LISTSERV.UA.EDU> On >> Behalf Of David Crayford >> Sent: Thursday, June 29, 2023 11:48 PM To:IBM-MAIN@LISTSERV.UA.EDU >> Subject: Re: Using EHLLAPI from ooRexx >> >> It may be easier to >> usehttps://urldefense.com/v3/__https://github.com/py3270/py3270__;!!E >> br-cpPeAnfNniQ8HSAI-g_K5b7VKg!LslIz3RHy9Ct1CC2dStYVdn9sNVor2JieWkv62q >> KTHeNjTV8BP_GG59tue0S-FF-h_YqPRXXtxsO4U4NUCOrg08$ >> >>> On 29 Jun 2023, at 10:56 pm, Farley, >>> Peter<0000031df298a9da-dmarc-requ...@listserv.ua.edu> wrote: >>> >>> Hi All, >>> >>> I have sent this question to the ooRexx help list but have not yet >>> seen an answer. Hoping someone here has been down this path and can help >>> cure my ignorance. >>> >>> I have an automation task before me that needs some complex 3270 >>> screen interactions, so I was hoping to use ooRexx from the company laptop >>> (Windows 10) using the EHLLAPI interface to PCOMM. >>> >>> I started with a simple logon script to learn the connection/setup >>> requirements, and after (I >>> thought) successfully executing rxfuncadd for the EHLLAPI interface, >>> the first actual call to EHLLAPI (for the Connect function) gets >>> oorexx error 43.1, cannot find routine EHLLAPI, indicating to me that the >>> rxfuncadd did not really work. >>> >>> Then it occurred to me to ask how does rxfuncadd know where to find >>> the EHLLAPI DLL? Is there some environment variable that needs to >>> be set pointing to the PCOMM directory where the DLL is stored? >>> >>> There is some old Rexx EHLLAPI interface material in the PCOMM V6 >>> documentation available on the web, but I now have PCOMM V14 on my >>> machine and it seems that the Rexx examples have disappeared from the V14 >>> documentation (at least I didn't find any). >>> >>> I am a little "lost at sea" here, so I would appreciate any help or >>> RTFM you can provide. Or better yet a publicly available set of example >>> scripts for EHLLAPI interactions with PCOMM. >>> >>> Peter -- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN