Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Assigning shotcut Key to a MACRO

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Assigning shotcut Key to a MACRO
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: 8593
Location: Back in jolly old England

PostPosted: Mon Aug 09, 2010 2:53 pm    Post subject:
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    Post subject:
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

Moderator Team Head


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

PostPosted: Mon Aug 09, 2010 3:27 pm    Post subject: Reply to: Assigning shotcut Key to a MACRO
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: 8593
Location: Back in jolly old England

PostPosted: Mon Aug 09, 2010 3:28 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Mon Aug 09, 2010 3:56 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am
No new posts How to Run Rexx Macro? Kalaivignesh CLIST & REXX 5 Fri Sep 01, 2017 9:08 pm
No new posts ISREDIT MACRO NOT WORKING! :cry: kirank889 TSO/ISPF 3 Thu Aug 03, 2017 5:46 pm
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us