What should be your attitude towards God in the midst of great calamity or prolonged suffering?
In the midst of his prolonged suffering, Job had reached a point where he had resorted to judging God by his dealings or on the basis of what he perceived God was doing. This situation of judging God by his dealings can be illustrated in this way: When God sends bad things or allows the death of your beloved children, you say, "Look at God's character. He is unjust! He is unfair!"
This is how Job had begun to perceive God in the midst of his prolonged suffering. He was judging God based on dealings he was able to see. But as his knowledge and understanding of God increased, Job's mind and heart were transformed and he began to judge God's dealings not on the basis of what he was able to see, but by the revelation that comes from knowledge of God's character.
In this renewed and transformed state, Job was able to say in the midst of his prolonged suffering, "I don't know what God is up to in this great calamity that has befallen me, but I don't have to know what God is up to in all these things because I know God and he can't do anything that is unjust. He can't do anything that is unfair. He can't do anything that is not for my good and his glory."
The anchor of Job's hope in God was solely in God's intrinsic perfection that is revealed in his word, and not on the basis of what Job imagined or perceived God was doing through his personal observations.
That's the story of how God saved Job -- with good theology.