I am having trouble getting the correct record size of a record in a file that I have opened as FORM="UNFORMATTED". Here is a code snippet. The file I am reading is a big-endian file.
OPEN(UNIT=20,FILE="FILENAME",FORM="UNFORMATTED",CONVERT="BIG_ENDIAN",STATUS="OLD") INQUIRE(UNIT=20,RECL=RECSIZE) PRIINT *, RECSIZE
I would expect RECSIZE to be the number of bytes (in 4-byte units) of the next record, which is the first record in this case. Am I misinterpreting the use of RECL specifier in an INQUIRE statement? In my example, I am expecting a record length of 5840 bytes (or 1460 4-byte units). Instead, RECSIZE=510?
Any help/info is much appreciated.