3 ! this testcase derived from NIST test FM413.FOR
4 ! tests writing direct access files in ascending and descending
8 IMPLICIT CHARACTER*14 (C
)
9 IMPLICIT INTEGER(4) (I
)
10 DATA IPROG
, IFILE
, ITOTR
, IRLGN
, IRECN
, IEOF
,ICON21
, ICON22
, ICON31
, ICON32
, ICON33
, ICON34
, ICON55
, ICON56
/14*0/
11 OPEN (7, ACCESS
= 'DIRECT', RECL
= 80, STATUS
='REPLACE', FILE
="FOO" )
17 WRITE(7, REC
= IREC
) IPROG
, IFILE
, ITOTR
, IRLGN
, IRECN
, IEOF
,ICON21
, ICON22
, ICON31
, ICON32
, ICON33
, ICON34
, ICON55
, ICON56
24 WRITE(7, REC
= IREC
) IPROG
, IFILE
, ITOTR
, IRLGN
, IRECN
, IEOF
,ICON21
, ICON22
, ICON31
, ICON32
, ICON33
, ICON34
, ICON55
, ICON56
33 READ(7, REC
= IREC
) IPROG
, IFILE
, ITOTR
, IRLGN
, IRECN
, IEOF
,IVON21
, IVON22
, IVON31
, IVON32
, IVON33
, IVON34
, IVON55
, IVON56
34 IF (IRECN
.NE
. IRECCK
) CALL ABORT
42 READ(7, REC
= IREC
) IPROG
, IFILE
, ITOTR
, IRLGN
, IRECN
, IEOF
,IVON21
, IVON22
, IVON31
, IVON32
, IVON33
, IVON34
, IVON55
, IVON56
43 IF (IRECN
.NE
. IRECCK
) CALL ABORT
45 CLOSE(7, STATUS
='DELETE')