🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #753

COBOL control flow analysis

#753
From: Bill Wolfe
Date: Sat, 11 Nov 1989 16:52
41 lines
2403 bytes
> Date: Fri, 10 Nov 89 22:17:03 MST
> From: orville@lu.eas.asu.edu (Dr. Orville Weyrich)
> Dear Bill:
> Would you please be kind enough to post the following to usenet for me?
> Thanks in advance,
> Orville R. Weyrich, Jr.

Subject: COBOL Poisons and Antidotes/Control Flow Nasties

I have the dubious fortune of having to come up to speed quickly in COBOL
for the purpose of producing software tools for COBOL, and have several
questions to ask of the net.

1) A number of years ago there appeared an article by Brian T. Smith
   entitled "FORTRAN Poisons and Antidotes", which appeared in a Lecture Notes
   in Computer Science volume entitled "Portability of Numerical Software".
   This article/book discussed nasty things that could be done when coding
   FORTRAN and how to avoid/deal with them. CAN ANYONE RECOMMEND BOOKS/
   ARTICLES OF A SIMILAR NATURE PERTAINING TO COBOL?

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.

PLEASE EITHER POST RESPONSES TO COMP.LANG.MISC OR E-MAIL TO ONE OF THE
FOLLOWING ADDRESSES:   weyrich@csun1.cs.uga.edu
                       orville@lu.eas.asu.edu

I WILL SUMMARIZE TO COMP.LANG.MISC.

PLEASE DO NOT LET THIS DEGENERATE INTO A DISCUSSION OF WHY COBOL IS
GOOD/BAD OR WHY I SHOULD USE Ada OR C OR ....
Technical Details
Message-ID: <7011@hubcap.clemson.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!ncrlnk!ncrcae!hubcap!wtwolfe

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!ncrlnk!ncrcae!hubcap!wtwolfe
From: wtwolfe@hubcap.clemson.edu (Bill Wolfe)
Newsgroups: comp.lang.misc,comp.software-eng
Subject: COBOL control flow analysis
Message-ID: <7011@hubcap.clemson.edu>
Date: 11 Nov 89 16:52:58 GMT
Organization: Clemson University, Clemson, SC
Lines: 41
Followups-To: comp.lang.misc