Object and Sources
Source members against compiled objects, across libraries: what has no source, what has no object, and what is stale.
On this page
What it is for
Before any large rebuild, one question has to be answered: is the source you are about to compile the source the object was built from. When it is not, a recompilation quietly reverts a fix nobody promoted.
Opening it
Tools4i in the Activity Bar, then Object and Sources.
| Field | What it takes |
|---|---|
| Libraries | Which to compare. Spaces or commas, * for a group. Left empty, the user part of the job’s library list is analyzed |
| Source files | Which source files to read members from, such as QRPGLESRC. Q* by default. Narrowing it makes the read faster |
Analyze reads both sides and matches them up; several libraries take a while. Cancel stops it and keeps whatever has been read.
Sources
Every source member, with the object of the same name, or the fact that there is none. Its Filter sources box shows only the rows containing the text, filtering what is already loaded rather than asking the server again.
The rows with no object are the ones to read first: either the object was never built, or it was built somewhere this analysis did not look.
Objects
The reverse view: every object, with the source member it was built from, or the fact that none was found. With its own Filter objects box.
An object with no source is one you cannot rebuild, and that is worth knowing before you plan the work rather than during it.
Skipped Sources and Skipped Objects
Members and objects left out: by the skip rules, or, for objects, because their type is never built from source. Both carry their own filter box.
These two tabs are what make the result trustworthy. A tool that silently drops rows cannot be checked; this one says what it dropped and why. Check here first when something you expected is missing from the other two.
The skip rules
Every shop has pairs that are supposed to look mismatched. The rules keep the real findings from being buried under the normal ones:
| Rule | What it skips | Typical value |
|---|---|---|
| Name patterns | LIBRARY/FILE/MEMBER patterns, comma-separated, * anywhere. A two-part pattern assumes any library |
*/QSRVSRC/*P, */QTESTSRC/* |
| Description | A member whose description contains any of these words | copybook, template |
| Source type | Types that never produce an object of their own | *INC, *CPY, TXT |
| Object type | Object types to leave out. They are still listed under Skipped Objects | *FILE, *CMD, *DTAARA |
| Object owner | Profiles whose objects to skip, handy for leaving out IBM-supplied objects | QSYS, QPGMR |
There is also a switch for objects whose source lives outside the libraries being analyzed, which is the normal case for a shop that keeps sources and objects apart.
Acting on a row
| Entry | What it does |
|---|---|
| Open Source (read only) | |
| View data (File Viewer) | On a row whose object is a file |
| Copy source of N… | Copies the sources of the selection to a library |
| Copy object of N…, Save object of N… | Copies them, or saves them into a save file |
| Add found library(ies) to list | When a counterpart was found outside the libraries you listed, this adds the library it was found in to the analysis and runs again |
| Copy source name, Copy object name, Name and Location |
The last one closes the loop on Look for candidates outside the list: the search finds the object in a library you did not name, and one click brings that library into the comparison properly.
Keeping it
Save writes the result as a snapshot and Open… brings it back, which is how the same reconciliation is compared before and after a promotion.