Multiple choice technology mainframe

The following GDG datasets exist: TBISUSR.TU00001.GDG.G0003V00 TBISUSR.TU00001.GDG.G0004V00 TBISUSR.TU00001.GDG.G0005V00 TBISUSR.TU00001.GDG.G0006V00 TBISUSR.TU00001.GDG.G0007V00 Which statement will always create: TBISUSR.TU00001.GDG.G0008V00 ?

  1. //DD1 DD DSN=TBISUSR.TU00001.GDG(+1),DISP=(NEW,CATLG),LRECL=80,

  2. //DD1 DD DSN=TBISUSR.TU00001.GDG(+1),DISP=SHR

  3. //DD1 DD DSN=TBISUSR.TU00001.GDG(8),DISP=(NEW,CATLG),LRECL=80,

  4. //DD1 DD DSN=TBISUSR.TU00001.GDG(8),DISP=SHR

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

GDG(+1) with DISP=(NEW,CATLG) creates the next generation in a Generation Data Group. Since G0007V00 is the highest existing generation, (+1) creates G0008V00. Using absolute generation numbers like (8) is incorrect for creation operations. DISP=SHR is for reading existing datasets.

AI explanation

Using a relative generation number like (+1) always refers to "the next generation to be created" regardless of how many generations currently exist, so it reliably produces G0008V00 here. Referencing an absolute generation number like (8) depends on the GDG's internal numbering being exactly in sync, which isn't guaranteed the same way, so it's not a reliable way to always create the next generation.