Mainframe data to data links - 1.0
Description
This extension does not analyze any source code by itself. It is a companion extension for the CAST mainframe language analyzers: when it is part of an analysis, it switches on two options of the analyzer that are otherwise off:
- save the data that is actually used by the programs: an object is created in the analysis schema for every variable or structure that is referenced (read or written) by the source code, instead of leaving the data declarations unsaved;
- save the data to data links: links are created between the saved data items to represent the flow of values from one data item to another (for example
A = B;), or between a data item and a file.
This makes it possible to follow how data flows through a program, for example for impact analysis or to see which data items end up in which file.
Supported analyzers
| Analyzer | Supported |
|---|---|
| IBM PL/I - com.castsoftware.pl1 | ✅ |
At the moment only the PL/I analyzer reacts to this extension. The extension is not named after PL/I because other mainframe analyzers are expected to support it in the future.
In what situation should you install this extension?
Install this extension when you want the data items used by your PL/I programs, and the links between them, to be saved in the analysis results.
If the extension is not part of the analysis, the analyzer behaves as before: no data object and no data to data link is created. Removing the extension from the analysis and running it again reverts to that default behavior.
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 analyzer it applies to.
The extension has no configuration option: its mere presence in the analysis is what enables the options.
What results can you expect?
When the extension is present, the PL/I analyzer creates the following additional results.
Objects
| Object Type | Description |
|---|---|
| PLI Variable | A variable or structure declared in a .pli file and referenced by the code. |
| PLC Variable | A variable or structure declared in a .plc file and referenced by the code. |
- Only the data that is actually referenced is saved. A variable that is declared but never read or written is not saved.
- When a structure member is referenced, its parent structures are saved as well, so that the structure hierarchy is preserved.
- A variable declared with the
BASEDattribute shares the object of the variable it is based on.
Links
| Link type | Caller type | Callee type | Comment |
|---|---|---|---|
| accessWriteLink | PLI/PLC Variable | PLI/PLC Variable | A value flows from the first variable into the second one, for example A = B; creates a link from B to A. |
| accessWriteLink | PLI/PLC Variable | PLI FileStructure / PLC FileStructure | Data written to a file: WRITE FILE(f) FROM(var) and REWRITE. |
| accessWriteLink | PLI/PLC FileStructure | PLI/PLC Variable | Data read from a file: READ FILE(f) INTO(var). |
This extension does not create access links between procedures and the variables they use.
Known Limitations
- A
BASEDvariable whose pointer cannot be resolved in the same source file, or whose pointer is a procedure parameter, is not saved. BASEDpointers declared in another file (EXTERNAL) are not followed.