https://www.ibm.com/docs/en/zos/3.2.0?topic=records-e35-return-codes
DFSORT will keep returning to your routine until you pass a return code of 8.
Example:
SORTE35 CSECT
SORTE35 AMODE 31
SORTE35 RMODE ANY
BAKR R14,R0
LR R12,R15
USING SORTE35,R12
L R3,0(,R1) address of record from DFSORT
LTR R3,R3
JZ EOF zero = end of input
CLC 0(4,R3),=C'Holy'
JNZ OK
LA R15,4 RC=4,delete
J RETURN
OK MVC RECORD,0(3)
WTO TEXT=MSGLEN
SR R15,R15 RC=0, accept
LR R1,R3
J RETURN
EOF LA R15,8 RC=8, do not return
RETURN PR
MSGLEN DC H'80'
RECORD DS CL80
LTORG
YREGS
END SORTE35
Regards,
Peter
On Thu, 13 Aug 2026 at 02:13, Joseph Reichman <
[email protected]> wrote:
> Hi
>
> I’m invoking ibm sort from a program I have an e35 exit I return a 4 to
> delete the record but sort keeps on passing me the first record
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN