Microsoft KB Archive/108349

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 16:05, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Article ID: 108349

Article Last Modified on 10/17/2003


  • Microsoft FORTRAN PowerStation 32
  • Microsoft FORTRAN PowerStation 32

This article was previously published under Q108349


A console application that opens a file with a unit specifier of 5 may cause subsequent screen output to appear on the same line (without carriage return and linefeed characters).


This problem seems to occur only when the application writes to the screen before opening unit 5.


If unit number 5 must be used for an external file, OPEN that file before performing any WRITE statements to the screen. Running the program with MORE piping (for example, | MORE) to display output one screen at a time also alleviates the error.


Microsoft has confirmed this to be a problem in Microsoft FORTRAN PowerStation 32 for Windows NT, version 1.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


The following sample program demonstrates the problem:

Sample Code

C Compile options required: none
      character*12 buffer
      do i=5, 7
         write(buffer,'(i5,a)') i,'.dat'
         write(*,*) 'Filename is: ', buffer
      end do


Filename is:     5.dat   Filename is:     6.dat
Filename is:     7.dat

Additional query words: 1.00 4.00 handle

Keywords: KB108349