Most of the time it would be どうも or あず unless two people are on, say, a mission, to where they would be a bit more formal with each other. But sometimes, especially in anime, the rules simply don't apply. The "Saank You" is normally as a joke the writers put in.