Joined: 26 Apr 2004 Posts: 4650 Location: Raleigh, NC, USA
1. Copy an ISPF MODEL for the panel display service you're using (DISPLAY, SELECT, TBDISPL) into your program. The MODEL for the service will include comments as to all the possible return-codes and what they mean.
2. Create a test program to display the panel with the selected service. Display the value of the return-code immediately after the panel is displayed. Note the different retrun-code values as you use different commands (Enter, End, Cancel).
Joined: 30 Aug 2006 Posts: 14 Location: Tampa, Florida
The variable is ".PFKEY". In the ")PROC" section of your panel, u can define a variable to receive it, such as "&PFKEY = .PFKEY". Then u can test the value of PFKEY. It will be 4 digits, such as "PF01", etc. The ENTER key will be represented by 4 spaces.