View previous topic :: View next topic
|
Author |
Message |
Abhishek Saurabh
New User
Joined: 25 Aug 2010 Posts: 23 Location: Pune, India
|
|
|
|
Can somebody please tell me the name of the keylist that a panel created by me will use by default?
Currently, I know that if Panel section is included in the definition of the PANEL, but keylist not specified, it uses the default keylist called "ISPKYLST".
But, in case the panel definition does not contain a Panel section at all, then what is the name of the default keylist used? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
dont remember,
don't want to look is up either,
but,
i think i remember something about
if there is not an explicit trap
for a pf key,
then you can not trap the pf key .
normally i have a routine that displays a message
(both a short message and a pf1 message which is a little more helful)
Code: |
only pf keys fb3 and pf4 are active |
the nice thing about short and long messages
is that you do not have to deal with popups or anything.
the facility for displaying short, concise, information
about your little sub-system
you only have to populate
the zed--short-message and the zed---long-message
and
then EXIT. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
it uses the default keylist called "ISPKYLST" |
I do not recall that that is the way it works. I searched for ISPKYLST and I found the reference, but I could not get it to work as described there.
I thought that if no keylist is specified that no keylist is used. It uses the ZPFKxx variables in your xxxxPROF profile member. You can display them using the KEYS command.
On a panel without keylists, the KEYS command displays panel ISPOPT3E. On a panel with keylists, the KEYS command displays panel ISPKLUCH. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
Can somebody please tell me the name of the keylist that a panel created by me will use by default? |
You should be able to display your panel, then issue the KEYLIST command. It will display the active keylist. |
|
Back to top |
|
|
Abhishek Saurabh
New User
Joined: 25 Aug 2010 Posts: 23 Location: Pune, India
|
|
|
|
Hi..
I would just like to mention that I am not facing any practical/programtic problem as such, it's more of a theoritical need to know the default panel name.
Now, let me tell what I have found till now. When I display a panel with a Panel Section definition, but no keylist specified, it uses the default keylist "ISPKYLST". I confirmed this by giving the KEYLIST command, which showed ISPKYLST as the active keylist. When I give the KEYS command, it shows me the details of all the keys defined in the keylist.
When I display a panel with no Panel Section at all, it uses some other keylist by default. In this case, if I give the KEYLIST command, it shows me a blank list, i.e. no keylist names. When I give the KEYS command, it shows me the details of keys (all the keys are active), but it does not mention the keylist name.
So, the question remains is that which keylist is this?? |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Repeating:
Quote: |
I thought that if no keylist is specified that no keylist is used. |
In the situation you describe, with no )PANEL tag, that no keylist is used. The name for it is 'no keylist'. |
|
Back to top |
|
|
Abhishek Saurabh
New User
Joined: 25 Aug 2010 Posts: 23 Location: Pune, India
|
|
|
|
Do you mean "No Keylist" is the name of the default keylist?
I am assuming that even when )PANEL tag is not given some keylist is active because keys like F1, F2, F3 do work. I guess you are suggesting that this keylist has the name "no keylist".
An extract from ISPF User's Guide Volume2:
"If you enter the KEYS command on the command line of any panel.... If you are not using keylists (that is, keylists are disabled) or if there is no keylist associated with the panel from which you enter the KEYS command, the PF Key Definitions and Labels panel (ISPOPT3D) is displayed."
ISPOPT3D is the name of panel. This doesn't carry the keylist name but shows all the key labels and definitions (PF1 - PF24).
Shall I assume that this panel is meant to show all the key definitions and labels, however all of them may not be active?? |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
I guess we need a history lesson...
When ISPF was first invented (I do not know the date, lets pretend 1977) there was not a concept of keylists. The PF key settings were stored as variables in the ISPF profile. Variables ZPFxx have the command that is issued when press the PFxx key. Variable ZPFLxx has the label that is displayed when PFSHOW is used.
To this day, for downward compatibility, panels do not need to use a keylist. In the case where no )PANEL tag is used, the panel will not use a keylist. Instead, the commands used are those defined through ZPFxx variables. I repeat - there is not a keylist.
Around 1991, keylists were introduced. Keylists are saved as tables in the ISPTLIB concatenation. For each application, there is a xxxxKEYS member. The keylist member is a table containing a row for each named keylist used in that application.
Keylists and ZPFxx variables are distinctly separate and different types of objects. A panel does not need to use a keylist!
Think of keylists as a data object. You are asking 'what object is used when no object is specified and no object is requested?'. The answer is that there is not any keylist object used. Instead of a keylist, it relies on the 1977-era PF key definitions, which are not stored as a keylist object.
Quote: |
I am assuming that even when )PANEL tag is not given some keylist is active because |
Incorrect, there is not a keylist active.
Quote: |
Shall I assume that this panel is meant to show all the key definitions and labels, however all of them may not be active?? |
I believe all such keys are active. Actually, I am not sure what you mean by 'active'. You will probably see PF5=RFIND, but it is only valid in certain places. However, pressing PF5 does result in the command being issueed, it just may not work on your private panel. You might get:
Code: |
ISPG050 The command or function key entered is not defined. |
If you are using a keylist and press a key that is not defined, you see a slightly different behavior:
Code: |
ISPG053 The command or function key entered is not defined. |
My apologies for my "name for it is 'no keylist'" comment which might have confused you. |
|
Back to top |
|
|
Abhishek Saurabh
New User
Joined: 25 Aug 2010 Posts: 23 Location: Pune, India
|
|
|
|
Hi Pedro,
Thanks a lot for the detailed explanation.
This is definitely helpful. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
FYI: I was part of the Beta program for ISPF V4. While I had access to ISPF developers, I suggested that we needed more granular definitions of PF keys. They came up with the concept of keylists.
I like keylists. But many people do not. Prior to keylists, it was fairly easy to customize your PF keys. But with keylists, it is a nuisance to have to change the key setting in so many places. For example, I like to have PF23 to be defined as 'TSO'. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Pedro - I blame YOU for all those frustrating inactive keys and so on! |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Doh! I outted myself.
I balance that out with dozens of other suggestions that people like. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Now that's great - Nice to have You here, Pedro.
Regards, |
|
Back to top |
|
|
|