I want to see your statement which read data records.
However, at this time I can say:
Normally, only one ACCEPT or REJECT statement is required in a single processing loop. If more than one ACCEPT/REJECT is specified consecutively, the following conditions apply:
■ If consecutive ACCEPT and REJECT statements are contained in the same processing loop, they are processed in the specified order.
■ If an ACCEPT condition is satisfied, the record will be accepted and consecutive ACCEPT/REJECT statements will be ignored.
■ If a REJECT condition is satisfied, the record will be rejected and consecutive ACCEPT/REJECT statements will be ignored.
■ If the processing continues to the last ACCEPT/REJECT statement, the last statement will determine whether the record is accepted or rejected.
If other statements are interleaved between multiple ACCEPT/REJECT statements, each ACCEPT/REJECT will be handled independently.
Hope this helps!