Thread: JCL and JCL Utilities

What is a GDG? Why (+1) and (0)?

Started by Sam • user3 replies255 viewsLast activity 2 weeks ago
Post #1
0 votes
Sam
Reputation
5
Posts: 28
Joined: Jul 1, 2026, 2:30 PM
Posted: Jul 30, 2026, 8:52 AM

Saw DSN=HLQ.DAILY.DATA(+1) and later (0) and (-1). Feels like versioning but I do not get the numbers.

Post #2
0 votes
Jen
Reputation
287
Posts: 34
Joined: Sep 3, 2024, 11:02 AM
Posted: Jul 30, 2026, 10:52 AM

GDG = generation data group. Same base name, many generations.

(+1) = new generation you are creating this run.
(0) = current (most recent cataloged) generation.
(-1) = previous one.

After the job catalogs (+1), that generation becomes the new (0) for the next job.

Post #3
1 votes
Bill
Reputation
221
Posts: 41
Joined: Aug 28, 2024, 7:08 AM
Posted: Jul 31, 2026, 9:52 AM

LIMIT on the base controls how many gens are kept. Scratch vs noscratch is a whole other headache for later.

You must be signed in to reply to this thread