I'm trying to compile a very old code but I get this error while compiling the code
Error: Syntax error in OPEN statement at (1)
The code:
WRITE(LUTTO,'('' TYPE NAME OF FILE CONTAINING INPUT : '',$)')
C READ (LUTTI,'(Q,A)') NCHAR,FILNAM
READ (LUTTI,'(A)') FILNAM
NCHAR = len_trim(FILNAM)
C ----- OPEN DATA FILE -----
print *, "NCHAR"
OPEN( UNIT = LUINP, NAME = FILNAM(1:NCHAR),
$ STATUS = 'OLD', RECL = 80 ,
$ CARRIAGECONTROL= 'LIST', ERR = 9900 )
CARRIAGECONTROLis also not standard. I believe "LIST" requests no carriage control, which is what modern compilers do by default so just get rid of it. Kind of sad your compiler doesn't give a more informative error message. FWIW carrige control would put an extra blank space at the start of every line, which you may or may not even notice.