Find dead data

Proprietary

Find declared fields that nothing reads, and fields written but never read back. Carrying data nobody uses is the cheapest thing to drop from a migration, and unused fields accumulate over decades because nothing makes them visible. Reading is counted through the record structure — a field read as part of a group move counts, and so does one whose bytes are read through a REDEFINES — and includes being tested in a condition, which moves no value, being named as an operand of an EXEC block or a CALL that does not fill it, and being the key a file statement looks a record up by. FILE and LINKAGE items are excluded, since something outside the program supplies and consumes them.

io.moderne.mainframe.lineage.FindDeadData

Optional

includeCopybookFieldsBoolean

Whether to report fields copied in from a copybook. They are off by default because a field unused here is often used by another program copying the same book, and only a portfolio-wide answer can tell them apart. Defaults to false.

mod run . --recipe=io.moderne.mainframe.lineage.FindDeadData

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