Too answer your second question: I don't think there's a programmatic API to write and write old-style PFKeys either. The way I've seen it done was by changing the key's profile variables in the shared pool.
Since the keylist is a table, it isn't in profile variables. Since ISRKEYS is open SHARE NOWRITE, you should be able open it again as SHARE NOWRITE and modify it. To make a permanent change you'd need to write it out to a different location. The devil's in the details, however. I haven't tried this. -----Original Message----- From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Schmitt, Michael Sent: Thursday, September 25, 2025 3:51 PM To: [email protected] Subject: Re: Programmatic API to ISPF PF keys? KEYS also tells which application contains the keylist, it does NOT have to be the same as your actual current applid. Keys in View says "ISR Keylist ISRSPEC". So, you know that ISRSPEC is in application ISR. The key list is in a member in the ISPTLIB concatenation, with name xxxxKEYS, where xxxx is the application name. So, your keylist is in ISRKEYS. Here's the proof: BROWSE ISPF Table ISRKEYS Row 13 to 21 of 21 Command ===> Scroll ===> CSR Shift ===> 1 KEYLISTN KEY1DEF KEY1LAB KEY1ATR KEY2DEF KEY2LAB KEY2ATR KEY3DEF KEY3LAB KEY3ATR KEY4DEF KEY4LAB KEY4ATR KEY5DEF KEY5LAB ----+--- ----+-- ----+-- ----+-- ----+-- ----+-- ----+-- ----+-- ----+-- ----+-- ----+-- ----+--- ----+-- ----+--- ----+-- ISRSAB HELP Help SHORT SPLIT Split LONG EXIT Exit SHORT ISRNAB HELP Help SHORT SPLIT Split LONG EXIT Exit SHORT ISRSPBC HELP Help SHORT SPLIT Split LONG EXIT Exit SHORT RFIND Rfind ISRSPEC HELP Help SHORT SPLIT Split LONG EXIT Exit SHORT ZEXPAND Expand SHORT RFIND Rfind -----Original Message----- From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Charles Mills Sent: Thursday, September 25, 2025 3:35 PM To: [email protected] Subject: Programmatic API to ISPF PF keys? If I enter the command KEYS from VIEW it tells me that my VIEW Keylist is ISRSPEC. Where is that defined? Using ISRDDN I could not find a member of that name. Is there a programmatic API to read and write the PF key definitions from an EDIT MACRO or elsewhere? ZPFnn and ZPFLnn apparently went by the wayside some time ago with the advent of keylists. Thanks, Charles ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
