BUG: F6804 or F6511 Error with Spaces in Namelist Input FileLast reviewed: March 28, 1996Article ID: Q149138 |
The information in this article applies to:
SYMPTOMSPerforming a READ of a namelist input file that contains spaces in or between the namelist variable objects causes one of the following run-time errors:
run-time error F6804 - illegal subscript in namelist input record -or- run-time error F6511 - variable name not found RESOLUTIONRemove all spaces in or between namelist object variables from the namelist input file.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONIf you use the sample namelist input file "test.in" as a reference, the F6511 error occurs under one of the following conditions:
"x( 2) = 1" or "y( 1, 1, 1) = 5" Sample Code to Illustrate ProblemC Compile options needed: none
integer i, j, x(3), y(1,1,1) namelist /thelist/ i, j, x, y open(7, file='test.in', mode='read') read(7, thelist) write(*, thelist) endNamelist input file: ---test.in--- &thelist i = 3 , j = 4 x (3) = 2 x( 2) = 1 y( 1, 1, 1) = 5 / ---end---
|
Additional reference words: 4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |