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

iostat error 104

tropfen
New Contributor I
1,767 Views

Hello,

using the following source i get the iostat error 104

open(unit=10,file=file2,access="sequential", status="old",action = "read", position = "rewind", iostat=iFehlerio)

The file is present and not empty. A couple of lines before in the program i was able to open and read the file. There is no documentation in the fortran help file.

What does the error mean?

Thanks in advance

Frank

0 Kudos
9 Replies
DavidWhite
Valued Contributor II
1,767 Views
0 Kudos
tropfen
New Contributor I
1,767 Views

Hello,

if i try the given link i get the following error message:

Page Not Found

The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. Please check the address bar to make sure the link is typed correctly, use the links above in the menu to locate the information you want, or search the site for another destination.


If you believe you have reached this page in error, please contact ISN Customer Support with the URL you are trying to reach.

Frank

0 Kudos
DavidWhite
Valued Contributor II
1,767 Views

If you search the forum for 104 you should be able to find the thread - that's how I found it.

David

0 Kudos
Steven_L_Intel1
Employee
1,767 Views
The URL dhould be http://software.intel.com/en-us/forums/showthread.php?t=70068&o=a&s=lr The forum is messing it up.
0 Kudos
Steven_L_Intel1
Employee
1,767 Views
Error 104 indicates that one of the keyword values passed to the OPEN routine has an invalid value. It might be that some code elsewhere in your program has corrupted memory. Can you come up with a minimal test case that causes this error to occur?
0 Kudos
tropfen
New Contributor I
1,767 Views

Hello Steve,

based on your hints i have added 'iomsg=c_iomsg' to the open statement. Then i was reciving the message:

incorrect POSITION=specifer value for connected file

The unit number i am using quite often in the program. All units will be closed after using. Changing the dummy number 10 to 1011 solved the problem.

It locks like the program has problems the close the file correctly.

The problem only occurs on the following configuration:

- Win7 64bit German

No Problems so far on Win XP 32bit and Win Server 2008 64bit.

Frank

0 Kudos
Steven_L_Intel1
Employee
1,767 Views
I see. What is happening is that you are doing an OPEN on a unit that is already open. The Fortran language restricts which OPEN keywords you may use in this case. You should make sure that the unit is CLOSEd before opening it again.
0 Kudos
TimP
Honored Contributor III
1,767 Views
From time to time, we have observed a latency issue, where Windows doesn't complete all the actions initiated by CLOSE quick enough to allow a subsequent OPEN.
0 Kudos
Steven_L_Intel1
Employee
1,767 Views

Tim,

That's true, but not what is going on here. In this case, Fortran has not seen a CLOSE on the unit.

0 Kudos
Reply