Hi,
Plz let me now the use of display statment in a CICS program. If explained with an example will be more easy to understand.
With regards
Neeraja
use of display
Moderators: DikDude, Natarajan, Moderator Group
Display statement is used in CICS for debug the program.
If you use display statement, those values will be printed in the main cics job.
For example.. your cics region names is CICSK200
if you go to spool you can find a job running with this name. In the job you can
find these values displayed.
If you use display statement, those values will be printed in the main cics job.
For example.. your cics region names is CICSK200
if you go to spool you can find a job running with this name. In the job you can
find these values displayed.
Regards,
Krishna
Facebook --> http://www.facebook.com/mainframegurukul
Connect with RAMESH KRISHNA REDDY --> http://www.linkedin.com/in/rameshkrishnareddy
Twitter --> https://twitter.com/mainframegurkul
http://www.mainframetutorials.com
Krishna
Facebook --> http://www.facebook.com/mainframegurukul
Connect with RAMESH KRISHNA REDDY --> http://www.linkedin.com/in/rameshkrishnareddy
Twitter --> https://twitter.com/mainframegurkul
http://www.mainframetutorials.com
I would like to add an addendum to what Krishna posted. There is a drawback to using ?DISPLAY?s in a CICS program and most shop will not allow it on their production machine.
The ?DISPLAY? verb invokes a MVS function that does a GETMAIN for the DISPLAY string, but does not release it until the MVS task is complete. The MVS task that is running is CICS, not your transaction. So, what happens is that every time a DISPLAY is used in CICS a small bit of memory is used up and not released. If there are many DISPLAYs being done, the total amount of memory used may become a concerning factor, but more of a factor is the fragmentation of memory that?s happening. Even though you may not have used a substantial amount of memory, the fragmentation can get to the point the a larger GETMAIN request from MVS may fail.
Dave
The ?DISPLAY? verb invokes a MVS function that does a GETMAIN for the DISPLAY string, but does not release it until the MVS task is complete. The MVS task that is running is CICS, not your transaction. So, what happens is that every time a DISPLAY is used in CICS a small bit of memory is used up and not released. If there are many DISPLAYs being done, the total amount of memory used may become a concerning factor, but more of a factor is the fragmentation of memory that?s happening. Even though you may not have used a substantial amount of memory, the fragmentation can get to the point the a larger GETMAIN request from MVS may fail.
Dave
FREE TUTORIALS
Tutorials
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.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page