IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Calling Menu from Macro


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ATH020

New User


Joined: 25 Sep 2006
Posts: 5

PostPosted: Tue Oct 17, 2006 1:25 pm
Reply with quote

Can anyone help how to call the menu in macro
(say for example; I want to call File-> Print Screen Collection -> Collect Screen)
I do not find any Sendkeys for "ALT" - key in a macro.

Regards,
ATH020
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Oct 17, 2006 1:38 pm
Reply with quote

I didn't say which emulation you use. I assume you are working on IBM's Personal Communication.

You can simply record a new macro, use the ALT key, and then just look at the macro code and see how it was interpreted.

O.
Back to top
View user's profile Send private message
ATH020

New User


Joined: 25 Sep 2006
Posts: 5

PostPosted: Tue Oct 17, 2006 2:07 pm
Reply with quote

Yes I am using IBM Personal Communication.

I have tried recording macro for ALT key.

But no code was recorded under procedure subSub1.

So can anyone say the alternative for that.

[PCOMM SCRIPT HEADER]
LANGUAGE=VBSCRIPT
DESCRIPTION=
[PCOMM SCRIPT SOURCE]
OPTION EXPLICIT
autECLSession.SetConnectionByName(ThisSessionName)

REM This line calls the macro subroutine
subSub1_

sub subSub1_()
end sub
Back to top
View user's profile Send private message
Richard Booth

New User


Joined: 15 Oct 2009
Posts: 2
Location: Tankersley

PostPosted: Thu Oct 15, 2009 11:50 am
Reply with quote

You could try

autECLSession.autECLPS.SendKeys "[print]"

Which prints the screen

There may be other Sendkey commands that carry out the functions you need

Take a look at

publib.boulder.ibm.com/infocenter/pcomhelp/v5r9/index.jsp?topic=/com.ibm.pcomm.doc/books/html/quick_beginnings05.htm
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts Calling an Open C library function in... CICS 1
No new posts PRINTOUT macro PL/I & Assembler 0
Search our Forums:

Back to Top