Enter PF3 twice to exit a REXX driven ISPF panel DISPLAY

Ask/Clarify the questions on TSO, CLIST & REXX

Moderators: Veera, Moderator Group

Post Reply
Geoff Jackson
Posts: 1
Joined: Tue Jun 12, 2018 9:30 pm
Location: California, USA

Enter PF3 twice to exit a REXX driven ISPF panel DISPLAY

Post by Geoff Jackson » Tue Jun 12, 2018 10:11 pm

This information is for REXX programmers who exploit ISPF DISPLAY calls in conjunction with the TSO EXECIO write feature to create an output file.

Error Description.
When a panel was displayed and the PF3 (END) key was pressed the panel reappeared and PF3 had to be pressed again before processing continued. The output report was successfully created and then displayed for browsing following the second PF3.

Problem Summary.
Output records were being added to a stack after a panel was displayed. When PF3 was pressed the stack was written to the output file using the TSO EXECIO feature. An end-of-file (EOF) null line was NOT added to the stack before the EXECIO was issued forcing the EXECIO to request further input. This would normally be done by displaying a screen prompt, so the last displayed panel was redisplayed for the extra (EOF) record input. Pressing PF3 again satisfied this EOF requirement and the panel display ended and output file was created successfully.

Problem Resolution.
An end of file null record was added to the stack within the REXX code after all other records were written to it. The EXECIO write call therefore had no need to request further input, so the last displayed panel did not need to be redisplayed "in error'.
Geoff Jackson.
Consulting Senior Software Engineer
Consist Software

Post Reply


Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Mainframe Interview questions

Other References
Mainframe Tools and others