Thanks Darrel. I didn't knew about the EECON1 (Still don't, never came across dealing with it). I read a post by Melanie about PokeCode sometime ago, I tried searching it now but could not find it. There I remember reading about this ERASECODE, I guess I missed some part of it where this must have been explained.

For now I have removed any ERASECODE statement, and divided the Pokecode into 2 statements (each with 250 values), and it compiles fine for now. Currently everything I am doing, I am simulating it on proteus, I hope when I burn this to PIC finally, all works fine.

Thanks for your help.