Since the code looks incomplete, even when considering I haven't worked with Fortran the last 25 years, I've checked this site:
http://en.wikibooks.org/wiki/Fortran/Fortran_examples[
^]
I've noticed two things:
1. Apparently there are considerable differences between the different versions of Fortran, so you better state what version you are using.
2. Your code is not a complete program in any version of Fortran. At the very least you didn't copy the boilerplate (program / end program). That's not a big issue, but if you don't provide the full program it's hard to tell whether your code is actually missing those bits or not.
And one more piece of advice: try some of the example programs from the site I linked above and verify they are working as intended. If not, there may be issues that are not related to your program code at all!