How to disable unwanted PF keys in panel

Ask/Clarify the questions on TSO, CLIST & REXX

Moderators: Veera, Moderator Group

Post Reply
SRI123
Member
Posts: 15
Joined: Wed Aug 12, 2009 12:18 pm

How to disable unwanted PF keys in panel

Post by SRI123 » Wed May 30, 2012 5:22 pm

I want to disable all the keys except PF3 & PF4 in my panel. How to do this using keylist?

Thanks

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Wed May 30, 2012 5:24 pm

how do you enable a pfkey?

i assume this is your panel and driven by your rexx script.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Wed May 30, 2012 11:38 pm

If not what dbz says then I presume it is a standard ISPF panel in which case just blank out the keys you want to de-activate
Regards
Nic

SRI123
Member
Posts: 15
Joined: Wed Aug 12, 2009 12:18 pm

Post by SRI123 » Fri Jun 01, 2012 11:46 am

I created a panel thru rexx. In that I want to do some process for PF4 and PF3. And I dont want any other key to be enabled. And even if I take this code to other system, same result should come.

I want to disable the keys in the rexx program itself.

Can some one help?

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Fri Jun 01, 2012 8:57 pm

Hello,

In the rexx code, why not just test for wanted/unwanted pfkeys and process accordingly?

When a key you want to use is pressed, do that function - when an unwanted key is pressed, leave the screen as though nothing had been pressed. . . A more friendly "thing to do" might be to show a message saying "unsupported pfkey".
Last edited by DikDude on Sat Jun 02, 2012 12:10 am, edited 1 time in total.
Have a good one

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Post by MrSpock » Fri Jun 01, 2012 11:52 pm

I'll never really get this concept. When a panel is displayed, the only real commands that are supported are END RC=8 or ENTER RC=0, SPLIT, HELP, and, if it contains scrollable areas, the UP and DOWN commands. Since ISPF users are usually familiar with these, why change what they're used to doing?

Anyway, the ZPFnn variables contain the value of the command assigned to that key. You can change them to a null and then use the VPUT service to update them.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others