Record the control flow of each program

Proprietary

Record every transfer of control between the paragraphs and sections of each program, from MAINLINE down: PERFORM with the procedures its THRU range runs through, the procedures SORT, MERGE and XML PARSE perform, GO TO, the branches EXEC CICS HANDLE registers and EXEC SQL WHENEVER adds to the SQL statements after it, and the fall-through from one paragraph into the next where no PERFORM returns, each with the line it is written at and whether it leads to a procedure that abends. FindControlFlowEdges answers the same question and marks what it found in the source; this one produces the table and changes nothing.

io.moderne.mainframe.prethink.AnalyzeControlFlow
mod run . --recipe=io.moderne.mainframe.prethink.AnalyzeControlFlow

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.