|
View previous topic :: View next topic
|
| Author |
Message |
sraj
New User

Joined: 21 Dec 2009 Posts: 4 Location: india
|
|
|
|
| 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 |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
|
|
and... how does this relate to COBOL ???
topic moved where it belongs |
|
| Back to top |
|
 |
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
| Have you tried Help on the attachmate screen? |
|
| Back to top |
|
 |
Ronald Burr
Active User

Joined: 22 Oct 2009 Posts: 293 Location: U.S.A.
|
|
|
|
| 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 |
|
 |
sraj
New User

Joined: 21 Dec 2009 Posts: 4 Location: india
|
|
|
|
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 |
|
 |
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
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 |
|
 |
sraj
New User

Joined: 21 Dec 2009 Posts: 4 Location: india
|
|
|
|
| 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 |
|
 |
Ronald Burr
Active User

Joined: 22 Oct 2009 Posts: 293 Location: U.S.A.
|
|
|
|
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 |
|
 |
|
|