I've used the CI variable HPStreamedBy for this purpose.
example:
...
!continue
!SPL patext,USLbak,$Null
!if !CIERROR=976 THEN
! TELL !HPStreamedBy;" ***** compile FAILED *****"
!EndIf
...
There may be a prettier way, but this works.
(I'm not sure in which version of MPE 'HPStreamedBy' arrived)