From: "Jaromir Jakacki" <[log in to unmask]>
Sent: Thursday, April 26, 2018 10:57 PM
> the main point is that my colleague made mistake and have calculated
> wrong record length (calculated record length correctly, but did not use
> '-assume byterecl' flag). Then wrote data without the flag. I would like
> to fix it using record length based on bytes. For example for real*8
> array with 10 elements:
> 1) his record length (SRL) is 10*8*4 = 320
> 2) based on bytes record length (DRL) should be 10*8=80
> How can i read data based on SRL and write is based on DRL.
You could read the data as long records (320) from the direct access file.
Write that out to a sequential file.
Then, in a separate program, read in the data from the sequential file,
and then write it out as short records (80) to a direct access file, using
'-assume byterecl' flag
> I tried to read it using recl=320 but it does not work (it saves data,
> but i am not able to read it using different sofware).
This email has been checked for viruses by Avast antivirus software.