View previous topic :: View next topic
|
Author |
Message |
purusothaman
New User
Joined: 17 Feb 2007 Posts: 39 Location: Chennai
|
|
|
|
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.
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).
Am I missing something?
Thanks in advance.
Regards,
Purusothaman Ramanujam |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
You don't TSO EXEC a macro |
|
Back to top |
|
|
purusothaman
New User
Joined: 17 Feb 2007 Posts: 39 Location: Chennai
|
|
|
|
Thanks for your quick reply Mr.Expat
I am able to understand the differences while executing.
Then how should I assign it to a function key?
Regards,
Purus |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
purusothaman
New User
Joined: 17 Feb 2007 Posts: 39 Location: Chennai
|
|
|
|
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.
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
purusothaman
New User
Joined: 17 Feb 2007 Posts: 39 Location: Chennai
|
|
|
|
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 |
|
|
|