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

can we assign a mainframe macro to a key in the keyboard?


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

New User


Joined: 21 Dec 2009
Posts: 4
Location: india

PostPosted: Mon Mar 15, 2010 5:29 pm
Reply with quote

can we assign a mainframe macro to a key in the keyboard so that the macro can be ran by just hitting the key. I am using Attachmate emulator
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Mar 15, 2010 5:31 pm
Reply with quote

and... how does this relate to COBOL ???
topic moved where it belongs
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Mar 15, 2010 5:34 pm
Reply with quote

Have you tried Help on the attachmate screen?
Back to top
View user's profile Send private message
Ronald Burr

Active User


Joined: 22 Oct 2009
Posts: 293
Location: U.S.A.

PostPosted: Mon Mar 15, 2010 6:13 pm
Reply with quote

You could try re-mapping one of the PF keys ( e.g. PF14 ) to the name of the macro. Then, whenever you press that PF key, the macro will be invoked.
Back to top
View user's profile Send private message
sraj

New User


Joined: 21 Dec 2009
Posts: 4
Location: india

PostPosted: Mon Mar 15, 2010 7:22 pm
Reply with quote

Hi,

I typed keys on command line to assign the macro to the function key, my macro name is ENTER so what should i give to assign this macro to pf6?

I tried mainframe help couldn't find related info.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Mon Mar 15, 2010 7:27 pm
Reply with quote

Assign the command to a pf key an then assign the key you want to act as that key. You are limited to 24 keys but some commands like autotype, and nretrieve really belong on the at your finger tips rather than up on that row of function keys.

Update: you are confusing emulator macros and mainframe macros. You don't assign a pf key to an emulator macro since the mainframe know nothing about your emulator.
Back to top
View user's profile Send private message
sraj

New User


Joined: 21 Dec 2009
Posts: 4
Location: india

PostPosted: Mon Mar 15, 2010 7:42 pm
Reply with quote

My Macros is a mainframe macro, just by giving the macro name to the pf key it wont take do i need to give the library or something so that the pf key will pick my particular macro?
Back to top
View user's profile Send private message
Ronald Burr

Active User


Joined: 22 Oct 2009
Posts: 293
Location: U.S.A.

PostPosted: Tue Mar 16, 2010 1:25 am
Reply with quote

Brief answer is 'YES'.
1) 'ENTER' is a poor choice for a macro name assigned to a key other than the ENTER key itself.
2) All the same, to avoid confusion, the macro "value" should be set to "%ENTER" not just plain "ENTER".
3) You must either place the Macro into one of the libraries concatenated to SYSEXEC or SYSPROC, OR insure that the library containing the Macro is "temporarily" allocated to SYSUEXEC ( if the Macro library contains only REXX Execs ) or SYSUPROC ( if the Macro library contains both CLISTs and REXX Execs ). Temporary assignment can be accomplished via the TSO 'ALTLIB' command.
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 Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts PRINTOUT macro PL/I & Assembler 0
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts How to Reformat a file using File Man... All Other Mainframe Topics 14
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
Search our Forums:

Back to Top