Try this code...
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD *
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
SRT3 STATUSFL1303404GH6 #T#
31055ABC0121X6AL5S3 D0 3012052512X226111290N 6AB6922521420
33111XYZ1231Y6AH5S3 D1 3012070312Y2282 N 6AB6922521420
MUT4 STATUSFL1400048MK3 #T#
74620DEF2134G1J86CC E1 3012090572Z313372650N 1JC4822521243
74620ZEB3218G1J86CC E2 3012090572O313372650N 1JD4822521243
//SORTOUT DD SYSOUT=*
//SYSIN DD *
INREC IFTHEN=(WHEN=(58,3,CH,EQ,C'#T#'),
BUILD=(13:10,15,28:1,4,37:10,18,58:58,3)),
IFTHEN=(WHEN=(21,1,CH,EQ,C'D'),BUILD=(01:C'13',03:37,2,05:6,6,
11:37,2,28:1,53)),
IFTHEN=(WHEN=(21,1,CH,EQ,C'E'),BUILD=(01:C'14',03:37,2,05:6,6,
11:37,2,28:1,53))
SORT FIELDS=COPY
OUTREC IFTHEN=(WHEN=GROUP,BEGIN=(58,3,CH,EQ,C'#T#'),PUSH=(13:13,15)),
IFTHEN=(WHEN=(58,3,CH,EQ,C'#T#'),OVERLAY=(58:3X))