Hi Reny,
Then you should the following commands:
To exit a transaction in batch input, you should use the batch input commands /BDEL (delete transaction), /N (next transaction) and /BEND (cancel (batch input)). When a batch input session has been cancelled with /BEND, the status of the session is set to "Incorrect".
Best regards,
Jonathan