M
Member 310024
Guest
I am writing a COBOL program on an IBM mainframe.
Under certain conditions I open a GDG in output mode,
and write records to it.
However, under other conditions, I don't open the file.
What I have noticed, is that a new cycle of the GDG gets
created, albeit with zero records in it, even when I don't
open the GDG file.
What I would like, is for a new GDG cycle to be created,
only when I open the file.
I presume that it's what I have in the JCL that is the problem.
I've got DISP=(NEW,CATLG,CATLG) and SPACE=(CYL,(5,1),RLSE)
Is there a JCL problem, or is it simply not possible to avoid the new GDG cycle?
Under certain conditions I open a GDG in output mode,
and write records to it.
However, under other conditions, I don't open the file.
What I have noticed, is that a new cycle of the GDG gets
created, albeit with zero records in it, even when I don't
open the GDG file.
What I would like, is for a new GDG cycle to be created,
only when I open the file.
I presume that it's what I have in the JCL that is the problem.
I've got DISP=(NEW,CATLG,CATLG) and SPACE=(CYL,(5,1),RLSE)
Is there a JCL problem, or is it simply not possible to avoid the new GDG cycle?