Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29062 Discussions

How do I continue to another command line?

caodavid
Beginner
690 Views
How do I correct the following error?
read(*,'(A)') filename
open(UNIT=lu, FILE=filename, STATUS='OLD', ACTION='READ',&
ISOSTAT=ierror)
C:My DocumentsFortranexer_4least_squares_fit.for(29) : Error: Syntax error, found '&' when expecting one of: * ...
open(UNIT=lu,FILE=filename,STATUS='OLD',ACTION='READ',&

What should I use instead of ?&? if I want to continue on another line?
(Visual Fortran 5.0, FORTRAN f90)
0 Kudos
1 Reply
james1
Beginner
690 Views
The ampersand is valid only for free source format. Make sure you are not using fixed or tab source formats. If your source has a type of .FOR try using .F90 instead.

James
0 Kudos
Reply