DD Statements and Dataset Allocation
Understand how DD statements connect a program's logical file references to physical datasets, devices, and allocation parameters.
The DD (Data Definition) statement is the fundamental unit of dataset allocation in JCL, and it's the single most-tested JCL concept in interviews because nearly every job-related question eventually routes through 'what would the DD statement look like for this?' A DD statement bridges a program's internal DDNAME (referenced in COBOL's SELECT/ASSIGN or a utility's control statements) to an actual physical dataset, SYSOUT class, or dummy allocation.
A DD statement is like the shipping label and handling instructions taped to a box — it doesn't just name the box (DSN), it tells the courier whether to open a brand-new box, reuse one already in the warehouse, and what to do with it if the delivery truck crashes en route.