1) If you are using the 64 bit compiler make sure x64 compilers and tools are installed with visual studio (this is a non default option during installation).
2) Make sure there are no errors when you run ifortvars.bat on its own in a command window. If there are, open up the BAT file and make sure all the paths (for example path to vcvars) and chosen system architecture (eg. x86_amd64) are correct.
Thanks for the answer. But I am not that much professional.
So would you please tell me how to check the items you mentioned?
Also, the subroutine I am using has been written in Fortran 9.1 and worked fine with ABAQUS 6.09
Can this be a reason?