Reprocess failed transaction

I have changed the MaxRetryNumber to “2” but

In the set transaction status(system exception) i have given a code like below.

So if it is giving any system exception it will write “fail” for that transaction so how can i redo it.

So it should retry 2 time and again if it fail it should write fail