PRB: Error 835 Compiling "Reference" SAVE Statement Example
PSS ID Number: Q10663
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 attempt to compile the application on page 119 of the Microsoft
   FORTRAN "Reference" manual fails and compiler pass 1 produces the
   an error 835 message.

CAUSE
   The compiler does not recognize the syntax of the SAVE command used
   in this example.

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

      INTEGER*4 MYVAR
      COMMON /MYCOM/ N
      SAVE /MYCOM/, MYVAR
      END

Additional reference words: 3.20

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

Copyright Microsoft Corporation 1993.
