If I remove that coding, how do I accomplish the same result?
If you remove something, and want the same result back, you can just put the code back in. Same result as before is practically guaranteed.
I could guess that your real problem is a bit different: you removed lines that should have done X, but replaced 0030 with 9999 instead. You want to know, what code should be put in the place of those lines, so it does what you want - X.
This would be my guess of your problem, which brings us to a problem of mine: I want to help you, yet I don't know what X stands for.