FIX: F6511 Caused by Repeat Factors Used with NAMELIST

ID: Q49895


The information in this article applies to:
  • Microsoft FORTRAN for MS-DOS, versions 5.0, 5.1
  • Microsoft FORTRAN for OS/2, versions 5.0, 5.1


SYMPTOMS

Programs that are compiled with the Microsoft FORTRAN Compiler version 5.0 or 5.1, that use the VAX extension NAMELIST, and read in input that contains repeat factors, may generate the following error:

F6511: variable name not found


RESOLUTION

Avoid the use of repeat factors when using the VAX extension NAMELIST.


STATUS

Microsoft has confirmed this to be a problem in FORTRAN versions 5.0 and 5.1. This problem was corrected in FORTRAN PowerStation.


MORE INFORMATION

When the following input is used

&BASICD
XYZW(1,1) = 13, 9*0, 73, 9*0
WFTST(1,1) = 1.0, 9*0, 1.0, 9*0
/
the following code generates run-time error "F6511: READ(CON) - variable name not found":

Sample Code


      REAL*4 XYZW(2,10), WFTST(2,10)
      NAMELIST /BASICD/ XYZW, WFTST
      READ (*, BASICD)
      END 
As a workaround, do not use the repeat factors; for example, the following input works properly:
&BASICD
XYZW(1,1) = 13,0,0,0,0,0,0,0,0,0,73,0,0,0,0,0,0,0,0,0
WFTST(1,1) = 1.0,0,0,0,0,0,0,0,0,0,1.0,0,0,0,0,0,0,0,0,0
/
Also, it the last data item in the array is not a repeat factor, repeat factors can be used.

Additional query words: 5.00 5.10 replication factor

Keywords :
Version : :5.0,5.1
Platform :
Issue type :


Last Reviewed: November 3, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.