Article View: comp.lang.misc
Article #757Re: COBOL control flow analysis
From: Tom Ohmer
Date: Fri, 17 Nov 1989 15:06
Date: Fri, 17 Nov 1989 15:06
44 lines
2298 bytes
2298 bytes
In article <7011@hubcap.clemson.edu>, wtwolfe@hubcap.clemson.edu (Bill Wolfe) writes:
>
> > From: orville@lu.eas.asu.edu (Dr. Orville Weyrich)
> > Orville R. Weyrich, Jr.
>
> Subject: COBOL Poisons and Antidotes/Control Flow Nasties
>
> 2) I need to analyze the control flow of COBOL programs (especially old
> unstructured code). This analysis is made difficult by COBOL's weak
> definition of the boundaries of a procedure which allow things like
> branching out of a procedure before the end specified in the
> PERFORM THRU, thus leaving an active return pointer to be blundered into
> during some other execution of the code segment. Also many old COBOL
> programs seem to havrecursive calls in them (which work due to the
> ingenuity of long forgotten debuggers in kludging fixes). CAN ANYONE
> RECOMMEND BOOKS/ARTICLES PERTAINING TO DETECTING/HANDLING/RESTRUCTURING
> THESE SORTS OF ANOMALIES? Good graph-theoretical treatments of the subject
> are most welcome.
SIZE 3X Disclaimer in use.
I am aware of a product called RECODER that gives the following reports
on a COBOL program:
1. Warnings Report
2. Genealogy of Names Report
3. Dead Code Report
4. Structure Chart
5. Modularity Report
RECODER does Input Program Preparation, Structuring Process, Option
Dependent Code Customization, and Structured Output Generation.
RECODER is by Language Technology, Inc
27 Congress Street
Salem, MA 01970
For the record, this is a rumor. Off the record, you might want to check
it out.
--
Tom Ohmer @ Defense Logistics Agency Systems Automation Center,
DSAC-AMB, Bldg. 27-6, P.O. Box 1605, Columbus, OH 43216-5002
UUCP: ...{seismo!osu-cis}!dsacg2!tohmer INTERNET: tohmer@dsacg2.dla.mil
Phone: (614) 238-9210 AUTOVON: 850-9210 Disclaimer claimed
Technical Details
Message-ID:
<800@dsacg2.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!dsac!dsacg2!nam2254References:
<7011@hubcap.clemson.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!dsac!dsacg2!nam2254 From: nam2254@dsacg2.UUCP (Tom Ohmer) Newsgroups: comp.lang.misc,comp.software-eng Subject: Re: COBOL control flow analysis Summary: Might help. Message-ID: <800@dsacg2.UUCP> Date: 17 Nov 89 15:06:50 GMT References: <7011@hubcap.clemson.edu> Organization: Defense Logistics Agency Systems Automation Center, Columbus Lines: 44