The output stream consists of header record, data records, sort records, and control records. Each record starts with a flag (1 byte) that determines the record type: header [H], data [D], sort [S], and control [C].
Header Record Structure Sort Record Structure Data Record Structure Control Record Structure