View previous topic :: View next topic |
Author |
Message |
bade_miya Beginner

Joined: 10 Dec 2003 Posts: 110 Topics: 38
|
Posted: Tue May 18, 2004 4:52 am Post subject: how to execute rexx without prefixing with tso |
|
|
hi all,
I am new to rexx. i have coded some simple rexx program. If my rexx program name is abc, i execute it by giving tso abc. Is there any way to execute my program without prefixing it with tso. That is, if i give just abc in the command line, it should execute. is there any way of doing it? (i am working in mvs.)
thanks
bade_miya. |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Tue May 18, 2004 5:15 am Post subject: |
|
|
Just typing abc on the ISPF command line (Option 6) should work just as well. You only need the tso prefix when you're in an ISPF application such as EDIT or BROWSE. |
|
Back to top |
|
 |
bade_miya Beginner

Joined: 10 Dec 2003 Posts: 110 Topics: 38
|
Posted: Tue May 18, 2004 5:29 am Post subject: |
|
|
hi superk,
thanks for the quick reply. But that is working only in option 6. if i am in ISPF/PDF PRIMARY OPTION MENU, its not working like in option 6.
should i do somthing for this to work in ISPF/PDF PRIMARY OPTION MENU too?
thanks
jaison. |
|
Back to top |
|
 |
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Tue May 18, 2004 7:53 am Post subject: |
|
|
bade_miya,
You can also try typing 'EX'ec on the member line of your rexx library.
EDIT xxx.xxx.xxxxx
Command ===>
Name Prompt
_________ xxxxxxxx
ex_______ xxxxxxxx |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Tue May 18, 2004 8:52 am Post subject: |
|
|
On my system, the ISPF Primary Option Menu uses a panel definition IKJACCNT. As I browsed the panel library and looked at IKJACCNT, I can see where the systems programmer has defined a table of valid options for the command line (the ZCMD variable). If I enter a value, such as the name of a REXX exec, that is NOT defined to that table, I get an error message "Invalid Option". The only way I can get around this is to issue the name of the REXX exec, preceding it with the value "TSO".
My suggestion would be to add your exec as an option on the ISPF Primary Menu panel definition. |
|
Back to top |
|
 |
Maton_Man Beginner

Joined: 30 Jan 2004 Posts: 123 Topics: 0
|
Posted: Tue May 18, 2004 7:06 pm Post subject: |
|
|
When you are in ISPF any commands issued are assumed to be ISPF commands unless you prefix them with TSO in which case they are treated as TSO commands. Rexx execs and CLISTs are assumed to be TSO commands unless you execute them from within an Edit or View session and they contain an address isredit MACRO command as the first command in the exec/clist.
If you want to be able to execute your Rexx's anywhere in ISPF without manually prefixing them with TSO you could:-
1. Define each one of them to your ISPF command table. This is not a straightforward solution and you would only use it for very frequently used commands as the size of the table will impact your TSO performance to a degree.
2. Allocate your most frequently used commands to a PF-Key.
Neither solution eliminates the need to prefix with TSO, just your need to type it in manually.
You could also do what superk alluded to which is to make your rexx execs an option in your primary panel - remember you don't have to see the option on the panel for it to be available to execute, ie you can have 'hidden' panel choices.
In my opinion though all the solutions offered are more onerous to set up and maintain than simply typing TSO before each command!!! _________________ My opinions are exactly that. |
|
Back to top |
|
 |
bade_miya Beginner

Joined: 10 Dec 2003 Posts: 110 Topics: 38
|
Posted: Wed May 19, 2004 2:12 am Post subject: |
|
|
thank you superk,Suresh and Maton_Man. Thanks for all the replies. i think the best option for me will be to use pfkeys. |
|
Back to top |
|
 |
|
|