Joined: 26 Apr 2004 Posts: 4650 Location: Raleigh, NC, USA
I don't understand what you want to do with steps 3 & 4.
If you display PANEL2 with CONTROL DISPLAY LOCK still active, then, as documented, any user interaction with the panel is ignored. So, you definitely need to disable the DISPLAY LOCK first.
Then, you want to check if ANY key is pressed? Normally, if a panel is displayed via the DISPLAY service, pressing ENTER will end the DISPLAY service with a RC of zero. Entering END or EXIT, or, pressing a PF Key that is associated to the END or EXIT commands will end the DISPLAY service with a RC of 8. The DISPLAY service won't end until the user presses some appropriate PF key or enters something appropriate on the command line.
Thanks for response.
Here's what is intended. I want to keep sending some screen on ISPF until someone interrupts it.
Hope this has clarified the Steps you mentioned.
Please try if you can help me with this.
Thanks and Regards,
Milan
superk wrote:
I don't understand what you want to do with steps 3 & 4.
If you display PANEL2 with CONTROL DISPLAY LOCK still active, then, as documented, any user interaction with the panel is ignored. So, you definitely need to disable the DISPLAY LOCK first.
Then, you want to check if ANY key is pressed? Normally, if a panel is displayed via the DISPLAY service, pressing ENTER will end the DISPLAY service with a RC of zero. Entering END or EXIT, or, pressing a PF Key that is associated to the END or EXIT commands will end the DISPLAY service with a RC of 8. The DISPLAY service won't end until the user presses some appropriate PF key or enters something appropriate on the command line.