Concatenate 15 GDG Base only if the versions exist
Posted: Sun Dec 30, 2012 10:17 am
I have 15 GDG Base , and some may have versions,whereas some may not have any GDG versions.
I want to copy all the versions created by 15 GDG base into a single file.It can be achieved by copying the GDG base like this,
step01 pgm=sort
sortin dd dsn=gdg1.base,disp-shr
.
.
=gdg15.base,disp=shr
sortout dd dsn=output dataset ,disp=(,catlg,)
But what will happen, if there are no versions created for one particular GDG base ?? will the job abend ?? If it abends, how can it be handled ?
Can anyone help me out in this ??
I want to copy all the versions created by 15 GDG base into a single file.It can be achieved by copying the GDG base like this,
step01 pgm=sort
sortin dd dsn=gdg1.base,disp-shr
.
.
=gdg15.base,disp=shr
sortout dd dsn=output dataset ,disp=(,catlg,)
But what will happen, if there are no versions created for one particular GDG base ?? will the job abend ?? If it abends, how can it be handled ?
Can anyone help me out in this ??