I designed a panel. I need to differentiate between PF03 and ENTER keys. PF03 works fine by using the logic 'fkey='PF03'. Need to map ENTER key to process and all other PF keys to be made as invalid keys.
In a previos post by someone, I found that PF03 gives RC of 8 whereas ENTER '0'. But the RC for ENTER as well as PF03 is '0' as far as I could see. Please let me konw what can be done.
Joined: 26 Apr 2004 Posts: 4650 Location: Raleigh, NC, USA
Once again, I need to ask why you want to do this.
When you use the DISPLAY service for a panel, there are only two normal return-codes that you need to deal with: RC=0 or RC=8.
When you call the DISPLAY service, and then press the ENTER key, the DISPLAY service ends with RC=0. When you call the DISPLAY service, and then enter an END or EXIT or RETURN command, then the DISPLAY service ends with RC=8.
Since each TSO/ISPF user has the option to specify which PF keys are mapped to which commands, then it doesn't make logical sense to look for specific PF keys to be pressed, when all that's really important is what command they issue, and what return-code that command generates back to the dialog.