|
|
| Author |
Message |
Gaurav Chauhan
New User
Joined: 29 Oct 2007 Posts: 9 Location: Pune
|
|
|
|
I use this to navigate to Endevor option "Display Elements/Component" -:
START V.EC → 1 →1 → 1 →1
I need a macro to automate this.
Basically I need to position the cursor on command-line....Then send "START V.EC;1;1;1;1" to ISPF
Thanks
Gaurav |
|
| Back to top |
|
 |
References
|
Posted: Tue Jun 10, 2008 2:36 pm Post subject: Re: macro needed to navigate to Endevor. |
 |
|
|
 |
Moved: Tue Jun 10, 2008 2:41 pm by superk From CLIST & REXX to TSO/ISPF |
HappySrinu
Active User
Joined: 22 Jan 2008 Posts: 188 Location: India
|
|
|
|
Gaurav,
Do you always want to browse the elements from only one envionment.
if so, how many environments
first one 1st - environment (may vary depends on your requirement to browse the elements)
Second one 3nd - Display option (constant in Endevor main panel_
thrid 1 - Element display option (to give all options)
please check back your requirement because usually it's not only required to browse for one environment. |
|
| Back to top |
|
 |
Gaurav Chauhan
New User
Joined: 29 Oct 2007 Posts: 9 Location: Pune
|
|
|
|
For mainframe that I'm using navigation is 1;1;1 once I log into Endevor.
Thing is that I want to issue "START 3.4;1;1;1" at command line in ISPF panel to navigate to 'Display Elements/Component Lists' Option. |
|
| Back to top |
|
 |
HappySrinu
Active User
Joined: 22 Jan 2008 Posts: 188 Location: India
|
|
|
|
Gaurav,
The display option is 1 in all Endevor panels because it's a 3rd party product.
it was my mistake I printed 3 as second one.
my question is you might have a different number of environments which is completely site specific. So do you always want to go to environment assigned to option:1.
If so then you can use same macro always. |
|
| Back to top |
|
 |
Gaurav Chauhan
New User
Joined: 29 Oct 2007 Posts: 9 Location: Pune
|
|
|
|
I'll be using ENVIRONMENT 1 only...
So that makes the navigation as "START V.EC;1;1;1;1" as against "START 3.4;....." wrongly mentioned previously. |
|
| Back to top |
|
 |
dbzTHEdinosauer
Senior Member
Joined: 20 Oct 2006 Posts: 1520 Location: germany
|
|
|
|
Macro??? why don't you people start using the proper terminology?
what you want is a tso or ispf command to jump you there. why not dedicate a pf key to this? |
|
| Back to top |
|
 |
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1063 Location: Chennai - India
|
|
|
|
Dick,
| Quote: |
why not dedicate a pf key to this?
|
Curious to know as to how this can be done. |
|
| Back to top |
|
 |
Pedro
Senior Member
Joined: 01 Sep 2006 Posts: 401 Location: work
|
|
|
|
A PF key is just a shortcut for issuing commands. For example, instead of pressing F2, you can actually type the word SPLIT on the command line and press Enter.
Type KEYS in the command line and press Enter. A panel will display with the current PF key definitions. Pick a less frequently used key (such as 13-24) and replace the values:
| Code: |
Key Definition Format Label
F13 . . START V.EC;1;1;1;1 SHORT Endevor
F14 . . tso %telephon LONG tele
|
It will work as if you typed that value in the command line and pressed Enter. |
|
| Back to top |
|
 |
Gaurav Chauhan
New User
Joined: 29 Oct 2007 Posts: 9 Location: Pune
|
|
|
|
Yeah it works...
But still wanted to know how to issue ISPF commands thru REXX and make this work through REXX. |
|
| Back to top |
|
 |
Pedro
Senior Member
Joined: 01 Sep 2006 Posts: 401 Location: work
|
|
|
|
Use ISPF option 3.9 to look at the ISP command table. You will find the definition of START there:
| Code: |
Verb T Action
START 0 SELECT PGM(ISPSTRT) PARM(&ZPARM) |
from which you can deduce how to perform the same action in your rexx program:
| Code: |
/* rexx */
Address ISPEXEC
"SELECT PGM(ISPSTRT) PARM(V.EC;1;1;1;1)"
|
The example above is untested, but should work.
fyi. Not all of us are native English speakers. And this is a forum for technical discussions... for the sake of clarity, it would be appreciated if you did not use chat jargon and abbreviations here. Thanks. |
|
| Back to top |
|
 |
Pedro
Senior Member
Joined: 01 Sep 2006 Posts: 401 Location: work
|
|
|
|
Likewise, you may be able to use ISPF option 3.9 to create your own commands! A panel titled 'Command Table Utility' should display and tell you what command tables can be used. Our system has a 'USR' command table. Using that name as an example, it will be a member named USRCMDS as a member in your ISPTLIB concatenation.
You can add an ENDEVOR command there, rather than creating a rexx program.
| Code: |
Verb T Action
ENDEVOR 0 SELECT PGM(ISPSTRT) PARM(V.EC;1;1;1;1)
|
You can type ENDEVOR in any command line. |
|
| Back to top |
|
 |
Gaurav Chauhan
New User
Joined: 29 Oct 2007 Posts: 9 Location: Pune
|
|
|
|
| Many thanks....Its working perfectly now |
|
| Back to top |
|
 |
HappySrinu
Active User
Joined: 22 Jan 2008 Posts: 188 Location: India
|
|
|
|
Thanks much Pedro, Learned one more new thing today.
I tried using your last suggested method of setting up in 3.9 option
Specifications
Application ID . . ISR
Enter "/" to select option
Show description field
After hit Eneter : next panel is
The command table is currently open, it cannot be modified. Use the view(V)
row command to see an entire entry.
Verb T Action
JCL 0 SELECT PGM(ISPSTRT) PARM(L.E)
I want to edit this command but it's not allowing, can you tell me how can i achieve this |
|
| Back to top |
|
 |
HappySrinu
Active User
Joined: 22 Jan 2008 Posts: 188 Location: India
|
|
|
|
secondly, if I want to go to a specific dataset with one command using the option given by you 3.9, how can i try that because after 3.4 option we need to place the cursor @ DSN name filed instead of command field to give dataset name
can we also do shifting cursor in same command |
|
| Back to top |
|
 |
Pedro
Senior Member
Joined: 01 Sep 2006 Posts: 401 Location: work
|
|
|
|
1. as you found out, you cannot edit an open table. That is why there are user and site command tables. I recommend you use those instead of trying to update the ISPF command table.
| Quote: |
| i want to go to a specific dataset... |
2. It is not clear what you mean by 'go to'
fyi. Not all of us are native English speakers. And this is a forum for technical discussions... for the sake of clarity, it would be appreciated if you did not use chat jargon and abbreviations here. Thanks. |
|
| Back to top |
|
 |
|
|