what tool you are using to retrieve, process, and control sysout listings.
With the help of that you can retrive the datasets in which sysout listing is stored(this can be done using Rexx LMDINIT command). Then by running SORT on all these datasets in concatenation select only those records where abend code or MaxCC is listed.
In my shop to see the datasets in which sysout listing is stored, I do Requeues of migrated job.
In reque job sysprint i see
HRECOVER 'HLQ.D0206369.T408233.jobname' WAIT
Using above rexx command i can find all dataset HLQ.*.*.jobname(one for each job i submited).Then I do run the SORT to select the records with return codes. MaxCC or abend codes are listed against msgcode '$HASP901' for me.
Here is sample output