I have an requirement where i need to read the last GDG number...
I tried using XXX.XXX.XXX(0)
in the below format...
"ALLOC F(INPUT) DA('XXX.XXX.XXX(0)') SHR "
"EXECIO * DISKR INPUT (STEM LINE. FINIS"
"FREE F(INPUT)"
But i am geting an error message like
IKJ56709I Invalid DATASET NAME 'XXX.XXX.XXX(0)'
IKJ56701I MISSING DATA SET NAME OR *+
IKJ56701I MISSING NAME OF DATA SET TO BE ALLOCATED
Can anyone help me in suggesting a way to find the last GDG version number present ? Or is there any way to be represented to read the last version ?