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://www.ibm.com/docs/en/personal-communications/15.0?topic=SSEQ5Y_15.0.0/com.ibm.pcomm.doc/books/html/host_access08.html>
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<[email protected]> On Behalf Of
David Crayford
Sent: Thursday, June 29, 2023 11:48 PM
To:[email protected]
Subject: Re: Using EHLLAPI from ooRexx
It may be easier to
usehttps://urldefense.com/v3/__https://github.com/py3270/py3270__;!!Ebr-cpPeAnfNniQ8HSAI-g_K5b7VKg!LslIz3RHy9Ct1CC2dStYVdn9sNVor2JieWkv62qKTHeNjTV8BP_GG59tue0S-FF-h_YqPRXXtxsO4U4NUCOrg08$
On 29 Jun 2023, at 10:56 pm, Farley,
Peter<[email protected]> 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
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN