You did not specify a record length in the RECORD instruction, or else you specified an invlaid length.
Provide or correct the record length and resubmit the sort.