When was the Wizard of Oz produced?

The classic movie came out in the year l939. There were stage plays dating back to l902. There are considerable differences between the movie and original story- written book form. There is no Rainbow in the book- song or otherwise ( a cyclone would destroy a rainbow by its own shock wave- right?) It is odd that a song instantly identified with Wizard of Oz did not appear in the book version.