On Thu, 9 Oct 2025 15:33:06 -0500, Charles Mills <[email protected]> wrote:

>but a VIEW session for the same userid in a split screen gets the overridden 
>PF definition.

I repeat that PF keys in keylists can't be reliably updated using an using an 
exec.  There are too many bugs in the exec to discuss and it will fail in 
multiple circumstances. Please don't use this exec because it is unreliable. 

For instance, we know that table ISRPROF uses TBSAVE instead of TBCLOSE to save 
the table. That means there will be times that the PF keys won't be correctly 
restored. If you have any doubt, then add "ISPEXEC VPUT TESTVAR PROFILE" after 
the ISPEXEC VIEW in the exec. Close everything in ISPF and run the exec and 
exit ISPF without doing anything else. Start ISPF and use KEYLIST to view the 
ISRSPEC. Notice the PF key did not get restored correctly. 

Keylist was designed for multiple ISPF tasks and there's a reason that IBM does 
not provide an API. This exec violates the rules for that design. 
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to