We are running emulation PCOM 6.0 for Windows. According to docs on IBM site, you should be able to call one macro from within another. A search of PS.StartMacro shows how to accomplish this. We have two terminal sessions and a printer session. The macro I am calling works fine when executed. The macro I am using to call this macro follows the example laid out by IBM. The macro produces the error "you need to call setconnectionbyname or setconnectionbyhandle" even though I have included it at the top of the script...
autECLSession.SetConnectionByName(ThisSessionName)
Dim PS
Set PS = CreateObject("PCOMM.autECLPS")
PS.StartMacro "macroname"
PCOMM Macros
-
- NewLounger
- Posts: 2
- Joined: 03 Nov 2011, 13:05
PCOMM Macros
Last edited by StuartR on 03 Nov 2011, 19:46, edited 1 time in total.
Reason: Topic title changed from Pcom to PCOMM to help future searches
Reason: Topic title changed from Pcom to PCOMM to help future searches
-
- Administrator
- Posts: 78545
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: PCOMM Macros
Welcome to Eileen's Lounge!
We have one member with experience using PCOMM; I hope he'll read your question.
We have one member with experience using PCOMM; I hope he'll read your question.
Best wishes,
Hans
Hans
-
- 5StarLounger
- Posts: 1185
- Joined: 24 Jan 2010, 12:02
- Location: Wales, UK.
Re: PCOMM Macros
Hello & welcome!
I am no expert in this field, but I can generally find my way around PCOMM. I have never had the need to call a macro from a macro with PCOMM, but I don't see the logic here.
PS if I am not mistaken is the presentation space, so PS.StartMacro "macroname" makes no sense to me. I don't see what the PS would have to do with macro execution. Could you provide a link to the ibm doc that you refer to? and/or explain in a bit more detail the overall requirement? Thanks.
I am no expert in this field, but I can generally find my way around PCOMM. I have never had the need to call a macro from a macro with PCOMM, but I don't see the logic here.
PS if I am not mistaken is the presentation space, so PS.StartMacro "macroname" makes no sense to me. I don't see what the PS would have to do with macro execution. Could you provide a link to the ibm doc that you refer to? and/or explain in a bit more detail the overall requirement? Thanks.
Nathan
There's no place like home.....
There's no place like home.....
-
- NewLounger
- Posts: 2
- Joined: 03 Nov 2011, 13:05
Re: PCOMM Macros
i'ver actually resolved the issue by calling it within the macro itself but there is documentation for IBM on this here: http://publib.boulder.ibm.com/infocente ... cess08.htm" onclick="window.open(this.href);return false;
-
- Administrator
- Posts: 78545
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
-
- 5StarLounger
- Posts: 1185
- Joined: 24 Jan 2010, 12:02
- Location: Wales, UK.
Re: PCOMM Macros
Thanks for posting, and for the link. Glad you got it sorted!!
I assume that this is what you refer to (which I'm still confused by), but like I said, I'm no expert!
I've never found PCOMM automation particularly easy, but with lots of trial & error, I usually get there in the end.
I assume that this is what you refer to (which I'm still confused by), but like I said, I'm no expert!
I've never found PCOMM automation particularly easy, but with lots of trial & error, I usually get there in the end.
You do not have the required permissions to view the files attached to this post.
Nathan
There's no place like home.....
There's no place like home.....
-
- NewLounger
- Posts: 2
- Joined: 06 Apr 2012, 19:22
Re: PCOMM Macros
hmm, I'm trying to solve this same issue...it would have been nice if the original poster had added their solution to the issue. I've been trying to make sense out of that snippet from IBM, but so far its been no luck.
-
- Administrator
- Posts: 78545
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: PCOMM Macros
Welcome to Eileen's Lounge!
I fear you won't get much help here - VegasNath, the only member with knowledge about PComm, doesn't use it much anymore, and he hasn't been online frequently of late. Sorry about that!
I fear you won't get much help here - VegasNath, the only member with knowledge about PComm, doesn't use it much anymore, and he hasn't been online frequently of late. Sorry about that!
Best wishes,
Hans
Hans
-
- NewLounger
- Posts: 2
- Joined: 06 Apr 2012, 19:22
Re: PCOMM Macros
Can't blame him, if i had the option I wouldn't use it much either.