Find references to a name

Proprietary

Report every place a data name, program, copybook, data set, DD name or paragraph is declared or referred to, with the file and line, and mark each one in the source. A search over the text finds the name wherever its letters appear; this finds the thing: a CALL through a field whose VALUE names the program, a condition name standing for the item it qualifies, a declaration copied in from a copybook, the DD a SELECT binds and the step that allocates it. What the rest of the portfolio knows about the name — what a program does with a field and where it reaches, who calls a program, who copies a copybook — is written beside its declaration.

io.moderne.mainframe.analysis.FindReferences

Required

The name to find every reference to, matched against the whole name without regard to case. Accepts a regular expression.

Optional

What the name is: DATA_NAME, PROGRAM, COPYBOOK, DATA_SET, DD_NAME or PARAGRAPH. Defaults to every kind, since one name can be a program to COBOL and a PGM= to JCL, or a DD to both.

mod run . --recipe=io.moderne.mainframe.analysis.FindReferences \ -P searchTerm=CA-CUSTOMER-NUM

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