The record length located at second byte with length 2 bytes. Based on the sample, the record length is "47 00" and after it convert to decimal it must be 71.
That mean before convert the hex value to decimal, i must sort the number from "47 00" to "00 47". After that, the number can be convert to decimal which is "0047" to "71".
My question, is it possible to sort the record using pack function ?. Could you give some example...