IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Merging of Incremental Image Copy with Full Image copy


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sajjan jindal
Warnings : 1

New User


Joined: 09 Sep 2007
Posts: 60
Location: india

PostPosted: Fri May 28, 2010 6:46 pm
Reply with quote

Hi,

I m trying to merge Incremental Imagecopy to Full Image copy.
I have coded as:

Code:
//DSNUPROC EXEC PGM=DSNUTILB,REGION=6144K,                       
//       PARM='D01G,RDBDB1DC.MERGDB1,'                           
//STEPLIB  DD   DSN=DB2D.PSYSB.P.D01G.SDSNLOAD,DISP=SHR           
//SYSPRINT DD   SYSOUT=*                                         
//UTPRINT  DD   SYSOUT=*                                         
//SYSUDUMP DD   SYSOUT=*                                         
//COPY1    DD   DSN=RDBD.PEXTB.N.RDBDB006.RDBS2173.INCR,         
//        DISP=(MOD,CATLG,CATLG)                                 
//COPY2    DD   DSN=RDBD.PEXTB.N.RDBDB006.RDBS2173.FULL,         
//        DISP=(MOD,CATLG,CATLG)                                 
//SYSUT1   DD   DSN=RDBD.PEXTB.N.MERGED.FULL.RDBS2173,           
//      DISP=(NEW,CATLG,CATLG)                                   
//SYSIN    DD *                                                   
MERGECOPY TABLESPACE RDBDB006.RDBS2173                           
  COPYDDN      (COPY1,COPY2)                                     
 NEWCOPY  NO                                     




I m getting error

Code:
DSNU458I  -D2DC DSNUYAS2 - NO IMAGE COPIES TO MERGE                             
DSNU407I    DSNUBCKB - DATA SET ALREADY USED FOR PREVIOUS IMAGE COPY           
                      DDNAME COPY1                                             
DSNU408I    DSNUBCKB - 'RDBD.PEXTB.N.RDBDB006.RDBS2173.INCR' EXISTS WITH -     
                      VOLUME=(CATG)                                             
                      FILE SEQUENCE NUMBER=0                                   
                      RBA=X'C60B6C59F241'                                       
                      DATE=10/05/28                                             
                      TIME=08:17:16                                             


Can anyone help to resolve this error? I have tried to take help from Manuals but i did not get much.

Even i m not sure we need to give Full copy name also.

Regards,
Sajjan
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri May 28, 2010 6:52 pm
Reply with quote

learn to use the code tags it makes things easier to read for people willing to answer

Your post has been edited to show how it looks much better
Back to top
View user's profile Send private message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Fri May 28, 2010 8:05 pm
Reply with quote

COPY1 DSN is already existing in your case.
NEWCOPY NO is going to create another incremental copy for the named tablespace and not merge the incremental copy with the full copy.

For merging use NEWCOPY YES to create a new full copy image - here you need to mention only the new full copy DSN to be created.

Code:

//DSNUPROC EXEC PGM=DSNUTILB,REGION=6144K,                       
//       PARM='D01G,RDBDB1DC.MERGDB1,'                           
//STEPLIB  DD   DSN=DB2D.PSYSB.P.D01G.SDSNLOAD,DISP=SHR           
//SYSPRINT DD   SYSOUT=*                                         
//UTPRINT  DD   SYSOUT=*                                         
//SYSUDUMP DD   SYSOUT=*                                         
//SYSCOPY1    DD     
           DSN=RDBD.PEXTB.N.RDBDB006.RDBS2173.INCR,         
//        DISP=(MOD,CATLG,CATLG)                                 
//SYSUT1   DD   DSN=&TEMP,           
//      DISP=(NEW,CATLG,CATLG)                                   
//SYSIN    DD *                                                   
MERGECOPY TABLESPACE RDBDB006.RDBS2173                           
  COPYDDN      SYSCOPY1
 NEWCOPY  YES         
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top