Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fortran77 compiler error ? 1

Status
Not open for further replies.

cyberix1

Technical User
Mar 28, 2008
3
CA
I used the GNU Fortran 77 compiler to resurrect an old program. It brought up an error with this statement:

18 READ(IUNI1, 1001,REC=1, END=17) (LINE(I), I=1,IRL)

It printed a (1) under the R of REC and a (2) under the E of END and noted:
conflicting I/O control statements at (1) and (2)

Can't figure out what is wrong except maybe a compiler bug?
Any help greatly appreciated.
 
REC= specifies which record you want. END= specifies where it should go to if it hits end of file. What it is trying to tell you is that if you know it is record 1, why are you checking for end of file?

Try changing END= to ERR=
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top