The book of Job is older than the book of genesis. It is a rare and magnificent ancient book. Moses recognized its importance and included it in the Tanach. Contemporary theologians and Hebrew scholars believe it was written before the book of Genesis because the scripture in it is Paleo Hebrew. No one can be certain of the date it was written, but everybody theorizes about the period it was written, by whom and from where. The truth is that God almighty gives testimony that it is a true story (Though Noah, Daniel, and Job were in it,  as I live, saith the Lord God), and that the person of Job himself existed, and the things told about him are really true. Job is placed in the same category of Noah and Daniel in the Bible. Their names are recorded in the book of Ezekiel, in the ancient scrolls of Israel. I've taken the following extract from Apologetics Press (2009), by Author Eric Lyons; in his article Was Job a Real Person? If Job were not mentioned anywhere else in the Bible apart from for the book that bears his name, those who claim he was not a real person might be able to argue their position more confidently. But the fact is, Job is mentioned in three different verses in Scripture (outside the book of Job), and in all three passages he is considered a real, historical figure. The first two places his name is found (aside from the book of Job) are in Ezekiel 14, verses 14 and 20. For it is written in Ezekiel 14:14 and in 14:20; 14 Though these three men, Noah, Daniel, and Job, were in it, they should deliver but their own souls by their righteousness, saith the Lord God. 20 Though Noah, Daniel, and Job were in it, as I live, saith the Lord God, they shall deliver neither son nor daughter; they shall but deliver their own souls by their righteousness.  Ezekiel’s point in both verses was that the ungodly conditions in the land were such that even if Noah, Daniel, and Job lived in that city, no one else would be saved. Ezekiel spoke of all three of these men as being real, historical people, not legendary characters. If one recognizes Noah and Daniel as being real people of history, then there is no reason to think otherwise about Job. The last place the suffering patriarch is mentioned in Scripture (and the only time he is mentioned in the New Testament) is found in the latter part of the book of James. For it is written in James 5:10-11; 10 Take, my brethren, the prophets, who have spoken in the name of the Lord, for an example of suffering affliction, and of patience. 11 Behold, we count them happy which endure. Ye have heard of the patience of Job, and have seen the end of the Lord; that the Lord is very pitiful, and of tender mercy. Obviously, James was not writing through inspiration about an imaginary person. Rather, he considered Job as real as Elijah, Isaiah, and Jeremiah, and as genuine as the Lord Himself. Finally, God states that Job was a real person explicitly within the book of Job itself. In his second “speech” to Job, God declared that the mighty behemoth was “made along with you” (40:15, emp. added). If Job were just a fairy tale-like character, God certainly would not have spoken as having “made” him. [End of Citation] http://apologeticspress.org/apcontent.aspx?category=13&article=521# Job was a righteous man in Gods eyes, and the bible recognizes his account as historical events in ancient times. And so is the story of Noah and Daniel. For Noah was the only man found righteous in the world before the flood. He built a massive wooden ship in the form of a gigantic box, the equivalent of a modern oil tanker ship. He built a ship for a sea that had not been formed yet, ever. There were no seas over the earth yet. Daniel was found righteous for his courage in front of the most powerful king on earth and his absolute trust in God, even to the point of certain death in a massive furnace on fire. Daniel never yielded his faith in face of death. Job was found righteous in a world with out the Law, before Abraham, before the prophets. Job was recognized righteous by God, before all the council of heavens, before Angels and Principalities, even satan himself. For centuries there has been so much to study and make doctrine about this story. Theologies of suffering, guilt, blame, the sovereignty of God, the battle between good and evil, hot and cold, and so on. But there is one aspect that is most important we understand, the terrible accusation made against God. Satan doubted the righteousness of God himself. He basically called him a puppeteer and a liar. It constituted a legal case against God, because of the place it was presented. In the heavenly court. In the middle of the assembly of The Sons of God.
THE CASE AGAINST GOD In The Book of Job 
To read more, please clic the following link:
La Raíz Del Olivo
The Case