[Info-vax] Portable OpenVMS binary data format?
Arne Vajhøj
arne at vajhoej.dk
Mon Aug 6 20:44:55 EDT 2018
On 8/6/2018 5:36 PM, Louis Krupp wrote:
> On Mon, 6 Aug 2018 14:15:53 -0700 (PDT), John E <eiler13 at gmail.com>
> wrote:
>>> 1) RECORDTYPE=STREAM_LF on VMS Fortran side and ACCESS=STREAM
>>> and read an extra INTEGER*1 on GFortran side.
>>
>> Thanks Arne (and everyone here)!
>>
>> This sample fortran program is basically the specific sort of solution I was looking for.
>
> Would it be easier to use RECORDTYPE=STREAM (instead of STREAM_LF) and
> not have to read the extra character with gfortran?
Then he would need to read an extra INTEGER*2 to skip CR LF.
:-)
> This has probably been mentioned, but compiling your OpenVMS FORTRAN
> programs with /FLOAT=IEEE_FLOAT could be helpful.
The binary FP numbers indeed need to be written in IEEE format.
Arne
More information about the Info-vax
mailing list