MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SYSCOP dataset already exists.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Sun Jan 11, 2004 5:04 am    Post subject: SYSCOP dataset already exists. Reply with quote

Hi,
I am facing problem while uploading records from a flat file. I get a message saying,
Quote:
DATA SET ALREADY USED FOR PREVIOUS IMAGE COPY DDNAME SYSCOP01


I found from Kolusu in the other forum:
Quote:
DB2 Automatically stores information about about full and incremental image copies in the catalog table SYSIBM.SYSCOPY.The information will be used by the recover utility.So every time you run the Image copy it tries to update the catalog tables with the image copy info dataset which is the prime reason you are getting the error.

The manual do not speak about the use or non-use of any kind of dataset/DISP for SYSCOPxx.

However, I am using a GDG. Despite, this I get the message for re-using an already used dataset! For example,
Quote:
'XXXXXXX.IMGCOPY.PRI.G0001V00' EXISTS WITH -
VOLUME=(CATG)
FILE SEQUENCE NUMBER=0
RBA=X'BA9887D2B147'
DATE=04/01/09
TIME=04:12:44


Yes, I deleted all generations before re-submitting. Yet, I get the above message. So, how do I use GDG for image copies?

For testing purposes, I removed the GDG base name and replaced it with a PS file. While re-running I changed the DISP=OLD. This too throws the same error message. Perhaps, this can be explained by the first quote that I have typed above.

I have another doubt in my mind. Suppose, I am able to fix the problem of upload while using GDG. If the upload step is restarted in case of a ABEND, then the backup cannot be taken into the latest generation with DISP=OLD. Right? The only way would be to get the latest generation and raise its version number. That is, change the dataset name to XXXXXXX.IMGCOPY.PRI.G0001V01. Right?[/list]
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Sun Jan 11, 2004 5:26 am    Post subject: Reply with quote

The answer to,
Quote:
The only way would be to get the latest generation and raise its version number. That is, change the dataset name to XXXXXXX.IMGCOPY.PRI.G0001V01. Right?


is Yes.

I just tested it.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Sun Jan 11, 2004 6:12 am    Post subject: Reply with quote

I just tested a situation with the GDG generation +11. This ran fine. Then, I deleted this generation and resubmitted. It failed.

This means, SYSIBM.SYSCOPY (?) stores the dataset name which was used for image copy. When I resubmitted-even after deleting-I got an ABEND as this dataset name was used before.

So, for a restart (in a rare case), the GDG must be changed with an incremented version number.

We do not want an altgether new generation, as we have to associate the generations to day of run.

I guess, I must have tried more before posting this thread.

Any inconvenience regretted.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Mon Jan 12, 2004 5:20 am    Post subject: Reply with quote

Cogito,

Can you post your Image copy control statements? You can use a GDG for an image copy with DISP=(MOD,CATLG,CATLG).The sample control statements should be as follows

Code:

COPY TABLESPACE DB.TBSPACENAME  COPYDDN IMG-COPY-DDNAME


Let us assume that your image copy ddname is SYSCOP01 then your control statements should be as follows
Code:

COPY TABLESPACE DB.TBSPACENAME  COPYDDN SYSCOP01


Now in your JCl you should the allocation for SYSCOP01 as follows:

Code:


//SYSCOP01 DD DSN=YOUR IMAGE COPY DSN(+1), 
//            DISP=(MOD,CATLG,CATLG),                     
//            UNIT=SYSDA,                                 
//            SPACE=(CYL,(X,Y),RLSE),                             
//            DCB=MODEL


Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Tue Jan 13, 2004 1:14 am    Post subject: Reply with quote

And, if this step abends, we start with GDG gen as 0 and DISP=(MOD,CATLG)? (Because, OLD did not work for me.) Is this what you are saying?
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Tue Jan 13, 2004 7:18 am    Post subject: Reply with quote

cogito,

yes indeed

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Tue Jan 13, 2004 7:26 am    Post subject: Reply with quote

Kolusu,
Well, MOD is something that is not favored here for this particular situation. (I do not know why. Standards, maybe)

I went ahead with GnnnnV01 approach.

Thanks for your responses.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group