Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

open file error

nmsualum
Beginner
1,016 Views
I'm getting an IOSTAT=30 error when I try to open an unformatted file. The file exists in the same directory and was written as an unformatted file. Any ideas out there? Thanks,
Sue
0 Kudos
4 Replies
Steven_L_Intel1
Employee
1,016 Views
Add a call to ERRSNS after the OPEN fails - the second argument returns a value that is the Windows error number. For example:
call errsns (, ierr)
Display the ierr value and let us know what it was.
0 Kudos
nmsualum
Beginner
1,016 Views
Thanks - I added the call, and the ierr returned is 32.
Sue
0 Kudos
Steven_L_Intel1
Employee
1,016 Views
Ok, that's SHARING_VIOLATION. The file is opened for exclusive access by another process.
0 Kudos
nmsualum
Beginner
1,016 Views
ok - that helps a lot. Thanks again,
Sue
0 Kudos
Reply