DATASORT allows you to sort data records between header records and trailer records.
-
True
-
False
DATASORT is a DFSORT operator that sorts data records between headers and trailers while keeping header/trailer records in place. This is a specialized sort for files with embedded headers/trailers - the statement is correct.
True. DATASORT is a control statement (used with sort products such as DFSORT/SyncSort on mainframe systems) that lets you designate certain records as header and trailer records and sort only the data records that fall between them, leaving the header at the top and trailer at the bottom in their original positions rather than folding them into the general sort order. This is useful for files that carry a header record describing the batch and a trailer record with control totals, where you need the body sorted but the header/trailer must stay fixed in place. Without a DATASORT-style facility, a plain sort would scramble header/trailer records in with the data based on their key values, which is exactly the problem this feature avoids.