PL/I Program Name From File Name - 1.0
Description
This extension does not analyze any source code by itself. It is a companion extension for the PL/I analyzer (com.castsoftware.pl1): when it is part of an analysis, the main procedure objects (PLI MainProcedure and PLC MainProcedure) are named after the base name of their source file, instead of the label coded on the PROC statement.
By default, the analyzer names a main procedure after the label of its PROC statement. In many mainframe environments, however, a program is called by the name of its source member (or of the load module built from it), which is the source file name and can differ from the coded label. For example, the source file DMCDPBMP.txt may contain a main procedure labelled DMCDBMP: callers refer to DMCDPBMP, while the analyzer creates an object named DMCDBMP. With this extension, the object is named DMCDPBMP and matches the name used by the callers.
In what situation should you install this extension?
Install this extension when the names used to call your PL/I programs (from JCL, from other PL/I programs, from other languages) are the source file names rather than the coded PROC labels.
Compatibility
| Extension | Minimum version |
|---|---|
| com.castsoftware.pl1 | ≥ 1.3.0-beta3 |
Download and installation instructions
No source file type triggers this extension, so it is not installed automatically when source code is delivered. Add it explicitly to the application (Application → Extensions) together with the PL/I analyzer.
The extension has no configuration option: its mere presence in the analysis enables the naming convention. Remove it from the analysis and run the analysis again to revert to the default naming (coded PROC label).
What results can you expect?
Objects
Only the name of the following objects changes:
| Object Type | Name without this extension | Name with this extension |
|---|---|---|
| PLI MainProcedure | Label of the PROC statement |
Base name of the source file (without its extension) |
| PLC MainProcedure | Label of the PROC statement |
Base name of the source file (without its extension) |
- The names and full names of the objects nested in a main procedure (procedures, entry points, and so on) follow the name of their main procedure.
- When
DLITPLIis the only label of thePROCstatement, the real program name cannot be recovered from the source code: in that case the base name of the source file is used with or without this extension. - Adding or removing the extension does not change the identity of the existing objects in the analysis results, so the history of the application is preserved.
Links
No link is added or removed by this extension.