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

Assigning shotcut Key to a MACRO


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
purusothaman

New User


Joined: 17 Feb 2007
Posts: 39
Location: Chennai

PostPosted: Mon Aug 09, 2010 2:51 pm
Reply with quote

Hi all,

I am trying to create a macro to find the line in which the cursor is currently placed.

Name of the Macro: Test

Code:
/* REXX */
ADDRESS "ISREDIT"
"MACRO (OPTN)"
"(ROW,COL) = CURSOR"
SAY "ROW IS " ROW
EXIT


This macro works fine when I keep the cursor in a edit/view panel and type the macro name "TEST" in the command line and enter line. It displays the line number as expected.

Code:
ROW IS  00000010,


But when I assign this macro
Code:
TSO EXEC 'TSOXXX.REXX.EXEC(TEST)'
to a shortcut key(F4) through KEYS panel and try this, I am getting the below message (not the actual numeric value).

Code:
ROW IS  ROW


Am I missing something?

Thanks in advance.

Regards,
Purusothaman Ramanujam
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Aug 09, 2010 2:53 pm
Reply with quote

You don't TSO EXEC a macro
Back to top
View user's profile Send private message
purusothaman

New User


Joined: 17 Feb 2007
Posts: 39
Location: Chennai

PostPosted: Mon Aug 09, 2010 3:22 pm
Reply with quote

Thanks for your quick reply Mr.Expat icon_biggrin.gif

I am able to understand the differences while executing.

Then how should I assign it to a function key?

Regards,
Purus
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Aug 09, 2010 3:27 pm
Reply with quote

It's a macro, so by its name.

Code:
Number of PF Keys . . . 24                         Terminal type  . : 3278

PF1 . . . HELP_____________________________________________________________
PF2 . . . SPLIT____________________________________________________________
PF3 . . . END______________________________________________________________
PF4 . . . TEST_____________________________________________________________
PF5 . . . RFIND____________________________________________________________
PF6 . . . RCHANGE__________________________________________________________
PF7 . . . UP_______________________________________________________________
PF8 . . . DOWN_____________________________________________________________
PF9 . . . SWAP_____________________________________________________________
PF10  . . LEFT_____________________________________________________________
PF11  . . RIGHT____________________________________________________________
PF12  . . RETRIEVE_________________________________________________________
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Aug 09, 2010 3:28 pm
Reply with quote

You need to concatenate the library in which the REXX / CLIST resides into either SYSPROC or SYSEXEC DD, and then just enter the macro name.
Back to top
View user's profile Send private message
purusothaman

New User


Joined: 17 Feb 2007
Posts: 39
Location: Chennai

PostPosted: Mon Aug 09, 2010 3:51 pm
Reply with quote

Thanks Mr.SuperK and Mr.Expat. You both are cool.

I am now able to execute the macro by assigning the macro name to the Function keys. icon_cool.gif

Evey time to execute my REXX/Macro I am running the below code by assigning it to a function key (F6).

Code:
/* REXX SETUP */
"ALTLIB DEACTIVATE APPL(EXEC)"
"ALTLIB ACTIVATE APPL(EXEC) DSN('TSOXXX.REXX.EXEC')"


I came to know that we can make them applicable when we login to the mainframe environment. I tried to play with the user CLIST. But it didn't work.

I want to execute all the REXX utilities without pressing any function keys each time, which I am doing currently.

Can you guide me to find some solution or to find some other links in the forum?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Aug 09, 2010 3:56 pm
Reply with quote

expat wrote:
You need to concatenate the library in which the REXX / CLIST resides into either SYSPROC or SYSEXEC DD, and then just enter the macro name.
Back to top
View user's profile Send private message
purusothaman

New User


Joined: 17 Feb 2007
Posts: 39
Location: Chennai

PostPosted: Mon Aug 09, 2010 4:16 pm
Reply with quote

Thanks guys for all your help.

I have already tried to concatenate to the SYSEXEC DD. But I do not know what I missed.

Let me try this and let you know on this.

Thanks a ton for your time.

Regards,
Purus
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts PRINTOUT macro PL/I & Assembler 0
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
No new posts Issues with executing a REXX MACRO th... TSO/ISPF 4
No new posts Facing issue in Run Edit Macro Job CLIST & REXX 9
No new posts outtrap does not capture within an ed... CLIST & REXX 1
Search our Forums:

Back to Top