File label metadata: In classic batch file processing, what do <em>header labels</em> typically contain?

Difficulty: Easy

Correct Answer: creation date and identification metadata

Explanation:


Introduction / Context:
In traditional batch environments (for example, tape or sequential files), labels at the beginning and end of a dataset provide key information. Distinguishing what lives in a header vs. a trailer supports reconciliation and error detection.


Given Data / Assumptions:

  • Header labels appear at the start of a file.
  • Trailer labels appear at the end of a file.
  • We must identify typical contents of the header label.


Concept / Approach:
Header labels store identification and descriptive metadata such as file name, creation date, originating system, and sometimes version. Trailer labels typically contain control totals (for example, record counts, hash totals, or monetary sums) used to verify completeness and detect transmission or processing errors.


Step-by-Step Solution:
List header functions: identify and describe the dataset at open.List trailer functions: provide numeric controls for end-of-file reconciliation.Choose creation/ID metadata for the header label.


Verification / Alternative check:
Operations manuals commonly define HDR (header) records with dataset identifiers and DTR/TLR (trailer) records with totals and counts.


Why Other Options Are Wrong:

  • Control totals: Typically in trailer labels.
  • Both: Mixes header and trailer responsibilities.
  • Neither: Incorrect because headers do include creation/ID metadata.


Common Pitfalls:
Placing control totals solely in headers eliminates a post-read verification point; trailers are designed exactly for end-of-file checks.


Final Answer:
creation date and identification metadata

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion