Prefix Resolution Update running in IMS compatibility mode resolves the logical relations and updates the databases fine but the job ends with rc=4.
No message indicates why the return code is shown as '4' instead of '0
There is a simple explanation why this job ended with RC=4 :
It is just the same return code the IBM IMS Prefix Res Utility is showing in case of Logical Parent Orphans being detected.
This is the most common case for logical parents with no logical children.
CA PRU use the same RC for compatibility reasons.
BUT this can be overridden by using an execution option :
To allow the PRU execution showing RC=0 in case of Logical Parent Orphans,
just use IMSRCCOMPATIBLE=NO
IMSRCCOMPATIBLE=YES is the default only for prefix resolution in IMS compatibility mode!
The IMSRCCOMPATIBLE statement specifies the final Prefix Resolution return code to MVS.
This control statement has the following format: IMSRCCOMPATIBLE=YES|NO
Specifies that Prefix Resolution adjusts the final return code to be compatible with DFSURG10. This is the default when invoked as DFSURG10.
The return code adjustments are as follows:
Indicates that an orphan logical parent was found.
Indicates that an orphan logical child was found.
Indicates that an orphan logical child and an orphan logical parent were found.
Indicates a return code of 12 that is rolled up.
Specifies that the final Prefix Resolution return code is as described in Return Codes. This is the default when invoked as other than DFSURG10.