I am trying to compile a Watcom syntax free FTN77 program using Silverfrost FTN95 but the compiler is objecting to certain parts of the program structure/syntax. Can anyone please advise in the problem and solution, thank you.
[/code !WATFOR-77 V3.1 Copyright WATCOM Systems Inc. 1984,1989 92/02/27 16:03:32
!Options: list,disk,errorfile,warnings,exe,terminal,check,arraycheck
SUBROUTINE FIND_SOURCE(SOURCE)
IMPLICIT NONE
CHARACTER*60 SOURCE
CHARACTER*200 LN1
INTEGER EXDOS,I
I=EXDOS('SET >TEMPFILE.ZZZ')
IF(I.NE.0)THEN
PRINT*,'ERROR ZTI#1: DOS not responding'
ENDIF
OPEN(1,FILE='TEMPFILE.ZZZ')
LOOP :L1
READ(1,'(A)',END=99)LN1(:80)
IF(LN1(:9).EQ.'AWDE_DIR=')THEN
SOURCE =LN1(10:)
QUIT :L1
ENDIF
ENDLOOP
CLOSE(1,STATUS='DELETE')
RETURN
99 PRINT*,'ERROR ZTI#2: DOS variable 'AAA_DIR' not set' CLOSE(1,STATUS='DELETE') OPEN(1,FILE='FOPT_RUN.BAT') CLOSE(1,STATUS='DELETE') STOP
END