Generation Data Groups (GDGs)
Understand how GDGs manage a rolling series of related datasets (like daily extracts) by relative generation number instead of hardcoded names.
A Generation Data Group is a cataloged collection of chronologically related datasets — think daily, weekly, or monthly extracts of the same file — referenced by relative generation number rather than a fixed absolute name. This is a heavily tested JCL concept because almost every shop's daily batch cycle produces and consumes GDGs, and interviewers use it to check whether you can reason about relative generations without getting confused about direction.
A GDG is like a stack of dated newspapers on a porch where you never refer to the actual date printed on the page — you just say 'today's paper' (+1) when adding a new one or 'yesterday's paper' (-1 or 0) when picking one up to read, and the oldest paper at the bottom eventually gets recycled once the stack hits its limit.