HP 3000 Manuals

CONTINUE Statement (Executable) [ HP FORTRAN 77/iX Reference ] MPE/iX 5.0 Documentation


HP FORTRAN 77/iX Reference

CONTINUE Statement (Executable) 

The CONTINUE statement creates a reference point in a program unit.

[]
Semantics The CONTINUE statement should always be written with a label; it marks a point in the program where a label is needed but the programmer does not want to associate the label with any specific action. In programs in earlier versions of FORTRAN, the CONTINUE statement is usually the last statement in a labeled DO loop that otherwise would end in a prohibited statement such as a GOTO statement. As a MIL-STD-1753 standard extension to the ANSI 77 standard, the END DO statement now serves this purpose. (See "DO Statement (Executable)" for examples of the END DO statement.) If a CONTINUE statement appears elsewhere in a program or if it is not labeled, it performs no function and control passes to the next statement. Examples Notes -------------------------------------------------------------------------------------- DO 20 i = 1,10 Because the last statement in the loop is a GOTO 10 x = x + 1 statement, a CONTINUE statement terminates the y = SQRT(x) loop. PRINT *, y IF (x .LT. 25.) GOTO 20 GOTO 10 20 CONTINUE


MPE/iX 5.0 Documentation