use of display

About CICS and BMS - In this Mainframe Forum - You can post your queries on CICS

Moderators: DikDude, Natarajan, Moderator Group

Post Reply
neeraja
Member
Posts: 8
Joined: Sun Nov 18, 2007 12:40 pm
Location: India

use of display

Post by neeraja » Wed Jan 23, 2008 7:14 pm

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

User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

Post by Krishna » Thu Jan 24, 2008 10:59 am

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.

neeraja
Member
Posts: 8
Joined: Sun Nov 18, 2007 12:40 pm
Location: India

Thanks

Post by neeraja » Thu Jan 24, 2008 5:35 pm

Hi
Thankyou for u r answer.


Neeraja

User avatar
DavidatK
Active Member
Posts: 65
Joined: Tue Mar 27, 2007 8:41 am
Location: Troy, MI USA

Post by DavidatK » Sat Feb 16, 2008 4:50 am

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

Post Reply

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



Other References
Mainframe Tools and others