Microsoft KB Archive/49430

From BetaArchive Wiki
Knowledge Base


DOCERR: Reference Manual Documents BZ Edit Descriptor Wrong

Article ID: 49430

Article Last Modified on 12/1/2003



APPLIES TO

  • Microsoft FORTRAN Compiler 5.0
  • Microsoft FORTRAN Compiler 5.1
  • Microsoft FORTRAN PowerStation 1.0 Standard Edition
  • Microsoft Fortran PowerStation 1.0a for MS-DOS
  • Microsoft FORTRAN PowerStation 32
  • Microsoft FORTRAN PowerStation 32
  • Microsoft FORTRAN Compiler 5.0
  • Microsoft FORTRAN Compiler 5.1



This article was previously published under Q49430

SUMMARY

In the Microsoft FORTRAN "Reference" manual for versions 5.0 and 5.1, the last paragraph of page 86, in the FORTRAN PowerStation32 for NT Programmer's Guide, page 116 (second paragraph), in the FORTRAN PowerStation 1.0 for Windows Programmer's Guide, on page 88 (second paragraph), and in the FORTRAN PowerStation 32, version 4.0 on-line docs, you will find the following statement:

... so the first thing the I/O system does is to pad the record 502 on the right with two blanks. If BZ editing were in effect, those two blanks would be interpreted as zeros, and the record would be equal to 50200.


This statement is incorrect. The BZ edit descriptor is designed to replace any spaces in the input with zeros, provided the space is not a leading space.

Contrary to the statement in the documentation, the I/O system does not pad spaces to the right of the two; therefore, the BZ edit descriptor does not add zeros to the end of the number.

When BZ editing is in effect, if the user types 502 and presses ENTER, the variable read receives the value 502, not 50200. However, if the user enters 502 followed by two spaces and presses ENTER, the variable read receives the value 50200.


Additional query words: 5.00 5.10 1.00 4.00

Keywords: kblangfortran KB49430