Created On:  25 November 2011

Problem:

Requirement is to identify all Cobol CICS programs, that contain a CICS GETMAIN statement without a corresponding CICS FREEMAIN statement.  How can this be done in HyperView - Clipper?

Resolution:

Working from the SET of the CICSGETMAIN and the DATA of the CICSFREEMAIN, 2 queries are attached to this article that will give the required results.
Note :- this will only work with the current unit of work or process block.

1. GETMAIN with NO related FREEMAIN
2. GETMAIN with related FREEMAIN

The Attached XML files can be imported directly into clipper for use.
Incident #2536824