PRB: F2836 "statement out of order" Error From DATA StatementLast reviewed: December 11, 1995Article ID: Q49730 |
The information in this article applies to:
SYMPTOMSCompiling an application which has a DATA statement that precedes an integer declaration causes the compiler to generate the following error:
F2836: statement out of order CAUSEThe application contains a DATA statement that is not specified in the correct order. According to page 48 of the Microsoft FORTRAN "Reference" manual for versions 5.0 and 5.1, "All specification statements must precede all DATA statements, statement-function statements, and executable statements."
RESOLUTIONTo address this error, modify the source code to place the statements in the proper order. The table on page 47 of the Reference manual provides the required statement order for code to compile correctly. The text below provides four rules for using the DATA statement:
MORE INFORMATIONThe following code example demonstrates the F2836 "statement out of order error" because a DATA statement precedes an integer declaration statement.
Sample CodeC Code options required: None
INTEGER N DATA N /1/ INTEGER M END |
Additional reference words: 4.00 4.01 4.10 5.00 5.10 1.00 1.00a
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |