Home > Ask the Data Center Experts > CICS Questions & Answers > Finding executed statements in CICS
Ask The Data Center Expert: Questions & Answers
EMAIL THIS

Finding executed statements in CICS

Robert Crawford EXPERT RESPONSE FROM: Robert Crawford

Pose a Question
Other Data Center Categories
Meet all Data Center Experts
Become an Expert for this site


IT infrastructure news
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 23 September 2007
Is there a way to find out the LINK/XCTL/CALL statements that got executed as part of online testing (not in debugging mode)? The objective is to ensure that all the called routines need to be tested (maximum code coverage). In batch we have DISPLAY command, which writes it to the log to simplify this. Is there a similar way out for onlines as well?

>

There's more than one way to do this.

I'm assuming DISPLAY to be the COBOL verb, but this also works for PL/1 PUT statements and C printf() calls. Put descriptive DISPLAY commands in your online programs. The output will go to the CEEOUT DD card in CICS, which you can analyze after the test. This takes a little bit of labor and you should be sure to remove the DISPLAYs before the programs go to production.

You can use CICS statistics. Ask your systems programmer to use the CEMT command to record and reset the statistics. This will set all the programs "times used" counters to zero. Run your test. After testing is complete ask the systems programmer to record and reset the statistics again. Once the statistics are recorded the systems programmer can use utility program DFHSTUP to print the loader domain statistics. The loader domain will have details for how many times each program was linked, XCTLed or loaded.

Before the test, use CEMT to look at the program use count for all the load modules. Run the test, then look at all the program use counters again. The difference should be the number of times the program was used. This is kind of a brute force approach that will take a lot of time depending on how many programs you're talking about.

Run an auxiliary trace while you test your application. Your systems programmer can print the trace, which you can go through looking for the CICS LINK, LOAD and XCTL commands. This one is also a bit labor intensive.

A couple of vendors offer software that runs in the background while keeping track of everything a transaction touches. You could use this software to generate a list of all the transaction activity during the test. This is probably the easiest of the solutions, but you have to spend the money for the software.


BROWSE BY TAG
CICS,   VIEW ALL TAGS

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
CICS
Which MQ Queue is related with which CICS transaction?
Can a program use IXLLIST macros in CICS?
VSAM files in CICS -- Batch report help
Reading VSAM data from different LPARs
Submitting a batch job from CICS
Automating FTP transfers to AIX
FTP a dataset from MVS to Linux
Mainframe FTP - A simple check
Failed arithmetic operations on CICS programs written in C
Does replicating DB2 tables into CICS tables affect CPU usage?

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Building Green Data Centers
HomeNewsTopicsITKnowledge ExchangeTipsBlogsMultimediaWhite PapersEvents
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2005 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts