The information in this article applies to:
SYMPTOMSPrograms that open an unformatted scratch file with the unit number 0, 5, or 6 may cause the following error:
CAUSEThe unit numbers 0, 5, and 6 for the open statement have been pre-assigned to do formatted I/0 on keyboard and screen. Opening unformatted scratch files with these unit numbers causes the runtime to attempt to open the keyboard or screen for unformatted I/O, which generates the above error. This is expected and correct behavior. RESOLUTIONTo avoid this error, open the scratch file with any number other than 0, 5, and 6. MORE INFORMATIONSample Code #1The following code generates the error:
Sample Code #2The following code illustrates a correct usage of the open statement for creating an unformatted scratch file:
Additional query words: 4.00 4.10 5.00 5.10 1.00
Keywords : kbcode kberrmsg kbFortranPS kbLangFortran |
Last Reviewed: November 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |