@Robert, if I am understanding your correctly that is where I started out:

https://www.ibm.com/docs/en/zos/3.2.0?topic=variables-terminal-function-keys 
ZPFnn and friends.

ZPF04 = 'MYPFKEY'
"VPUT (ZPF04) PROFILE"

Apparently that documentation is technically true but about 20 years obsolete. 
PF key definitions are now in keylist profiles. That technique works if keylist 
profiles are not in effect -- but they almost always are! Setting ZPFnn seems 
to have no practical effect on real-life EDIT and VIEW sessions.

Or am I missing something?

Charles


On Fri, 3 Oct 2025 00:30:09 +0000, Robert Prins <[email protected]> 
wrote:

>On 2025-10-02 21:04, Charles Mills wrote:
>> Okay, I had time to get back onto this. I have learned a little, but I have 
>> not solved my problem. What is the problem? I would like to be able, in a 
>> REXX EXEC executed from ISPF, to be able to read the setting of a given PF 
>> key, alter that setting, invoke VIEW and have the setting be in effect, and 
>> then restore the setting to its previous value -- either explicitly -- or 
>> implicitly by not "saving" the change.
>>
>> I have totally solved reading and writing the key tables.
>>
>> TBOPEN ISRKEYS NOWRITE SHARE
>> KEYLISTN = "ISRSPEC"
>> "TBGET ISRKEYS"
>> Say "KEY4DEF =" KEY4DEF
>> KEY4DEF = "MYNEWKEY"
>> TBPUT ISRKEYS SAVE(KEY4DEF)
>>
>> Does pretty much what it would seem like it should do. I can go into 3.16 
>> and see my change to ISRKEYS.
>>
>> But it has zero effect on the working PF key definitions for VIEW.
>
> From the start of one of my execs:
>
>"ispexec vget (zpf01 zpf02 zpf03 zpf04,
>                zpf13 zpf14 zpf15 zpf16) profile"
>pf.01 = zpf01
>pf.02 = zpf02
>pf.03 = zpf03

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to