[Info-vax] Portable OpenVMS binary data format?
Louis Krupp
lkrupp at nospam.pssw.com.invalid
Mon Aug 6 17:36:44 EDT 2018
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. I've been busy with other things the last week but I'll try to give this a shot when I have more time. It may not be worth the trouble but I do have a use case that involves running parallel fortran-based models on both linux & VMS and being able to FTP simple binary files back and forth than can be read & written on both linux & VMS without much extra effort has real value.
Would it be easier to use RECORDTYPE=STREAM (instead of STREAM_LF) and
not have to read the extra character with gfortran?
This has probably been mentioned, but compiling your OpenVMS FORTRAN
programs with /FLOAT=IEEE_FLOAT could be helpful.
Louis
More information about the Info-vax
mailing list