Page 1 of 1

Copy Utility abend

PostPosted: Sun Aug 23, 2009 3:19 pm
by hayt.main
Hi , I am getting the follwing error, when I tried taking image copy of my tablespace.

38I 231 05:26:34.81 DSNUGDYN - DATASET ALLOCATED. TEMPLATE=IMGTSCPY
DDNAME=SYS00010
DSN=WNPM.WNPMSU.HCM9CN2.PTAMSG.IC.G0001V00
7I 231 05:26:34.81 DSNUBCKB - DATA SET ALREADY USED FOR PREVIOUS IMAGE COPY
DDNAME SYS00010
8I 231 05:26:34.81 DSNUBCKB - 'WNPM.WNPMSU.HCM9CN2.PTAMSG.IC.G0001V00' EXISTS WITH -
VOLUME=(CATG)
FILE SEQUENCE NUMBER=0
RBA=X'01116B92FB34'
DATE=09/08/19
TIME=00:40:54
2I 231 05:26:34.85 DSNUGBAC - UTILITY EXECUTION TERMINATED,

Re: Copy Utility abend

PostPosted: Sun Aug 23, 2009 3:36 pm
by arcvns
DATA SET ALREADY USED FOR PREVIOUS IMAGE COPY
Does n't this error message give a hint about the reason for abend?

Re: Copy Utility abend

PostPosted: Mon Aug 24, 2009 7:39 am
by hayt.main
If that is the case. then how come the same dataset is created in JCL?
What I need to do now? To recitfy this error?

Re: Copy Utility abend

PostPosted: Mon Aug 24, 2009 8:35 am
by dick scherrer
Hello,

then how come the same dataset is created in JCL?
Please clarify - i do not understand the question.

Why is the process trying to create generation 1 (g0001v00) again? Typically, new generations are created as a (+1) and "the next" generation is assigned?

If this is a gdg, the jcl may need to be corrected to use the next relative generation rather than and absolute 1. It may help if you post the actual jcl.

Re: Copy Utility abend

PostPosted: Tue Aug 25, 2009 7:55 pm
by hayt.main
I have created JCL to take Image copies for a table space, i have taken 5 generations of GDG datasets and deleted the generations again and trying to take the image copies i am getting the above error.

Re: Copy Utility abend

PostPosted: Wed Aug 26, 2009 3:54 am
by dick scherrer
Hello,

Suggest you talk with your dba. You only "undid" 1/2 of the footprints. DB2 still remembers these were already used for image copies.

Why not use the gdg as designed and let the unneeded generations roll of when not needed?