Babar's epic 196 and Rizwan's gallant century helped the hosts snatch draw from the jaws of defeat in the second test in Karachi after the opening match also ended in a stalemate in Rawalpindi.