reebahs wrote:Hi All,
I have a Query reg GDG`s.
What happens if we use (+1),DISP=New in Step1 and (+1),DISP=New in Step2 ? How many generations will be created for my base ?
//Step1 EXEC ..........
//DD1 DD DSN=Base(+1),DISP=(NEW,CATLG,DELETE)
//Step2 EXEC .........
//DD2 DD DSN=Base(+1),DISP=(NEW,CATLG,DELETE)
I think you will get a JCL error saying "File already cataloged" at STEP2. If you use the Same GDG base repeatedly in a single job, you should use the generation number like this : +1, +2, +3 ......
If you use +2 in STEP02, then you will get 1 generation for each step.