So, your users have figured out that they can use the System Request menu to cancel a request by using Option 2 from the SYSREQ menu. So, now they can kill a long running database update process at will. Bad news!
And, what about that Attention Key handling program? Wouldn’t you like more control over the program that is called when ATTN is pressed?
Well, in this issues of the newsletter, Carsten presents the command CHGPRFEXIT (Change Profile Exit Program). The command activates or deactivates the system request or system attention exit program(s) for the specified user profile. When activated, the exit program(s) registered for the system request or system attention is called before the execution of the system request or system attention function.
The preattention and presystem request exit points QIBM_QWT_PREATTNPGMS and QIBM_QWT_SYSREQPGMS, respectively, are managed through either the WRKREGINF facility or the ADDEXITPGM and RMVEXITPGM commands. You can register up to eight exit programs for each exit point. The CHGPRFEXIT command can then activate any or all of them for a user profile.