Anton Shterenlikht wrote:
> Sub-clause 9.10.2.26 RECL= specifier in the INQUIRE statement
> of f2008, j3/10-007r1 has:
>
> *quote*
> If the connection is for formatted input/output,
> the length is the number of characters for all
> records that contain only characters of default kind.
> *end quote*
>
> What exactly does "all records" mean here?
> If the file contains multiple records of different
> length, what should be returned?
You need to read this sentence in connection with the previous sentence:
"The <scalar-int-variable> in the RECL= specifier is assigned the value
of the record length of a connection for direct access, or the value of
the maximum record length of a connection for sequential access."
Cheers,
John.
>
> For this code on linux:
>
> integer :: rec, funit
> call execute_command_line( "ls -alR . > zzz" )
> open( newunit=funit, file="zzz", access="sequential", form="formatted", &
> status="old")
> inquire( file="zzz ", recl=rec )
> write (*,*) "recl:", rec
> close( funit )
> end
>
> one compiler gives:
>
> recl: -1
>
> and another gives:
>
> recl: 132
>
> How should -1 be interpreted?
>
> Thanks
>
> Anton
>
|