PRB: SP Edit Descriptor Processed Incorrectly
PSS ID Number: Q10668
Article last modified on 02-09-1993

3.20

MS-DOS


----------------------------------------------------------------------
The information in this article applies to:

 - Microsoft FORTRAN for MS-DOS, version 3.2
----------------------------------------------------------------------

Summary:

SYMPTOMS
   An application that uses the SP edit descriptor produces incorrect
   output. Specifically, the output does not have contain a plus sign
   (+) to indicate a positive number and negative numbers are changed
   to positive numbers.

CAUSE
   The compiler does not generate appropriate code to process the SP
   edit descriptor.

STATUS
   Microsoft has confirmed this to be a problem in FORTRAN version 3.2
   for MS-DOS. This problem was corrected in FORTRAN version 3.3 for
   MS-DOS.

More Information:

The following code example demonstrates this problem.

Sample Code
-----------

C Compile options needed: None

      DO 10 I1 = -10, 10, 2
      WRITE(*, 100) I1, I1, I1
10    CONTINUE
100   FORMAT(' ', I3, ' ', SP, I3, ' ', I3)
      END

Additional reference words: 3.20

=============================================================================

Copyright Microsoft Corporation 1993.
