Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Inline Image copy with Reorg

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Aug 09, 2013 12:31 am    Post subject: Inline Image copy with Reorg
Reply with quote

Hi,

I have a question, suppose we do a reorg shrlevel none with copyddn option to specify the image copy dataset.

From the manual, I got to know that image copies are taken during reload phase.

Quote:

RELOAD
Reloads data from the sequential data set into the table space and creates
full image copies if you specify COPYDDN, RECOVERYDDN, SHRLEVEL
REFERENCE, or SHRLEVEL CHANGE. A subtask sorts the index keys.
The utility also updates table and table space statistics.



Now my question is If suppose reorg fails during reload phase, can I use this copyddn dataset to recover? will it be created?
Back to top
View user's profile Send private message

agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Mon Aug 12, 2013 8:37 pm    Post subject:
Reply with quote

No. Image copy is recorded in the catalog (SYSIBM.SYSCOPY) only when the utility is successful. I believe, even if the COPYDDN dataset was catalogued, DB2 won't recognize it.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Mon Aug 12, 2013 9:47 pm    Post subject:
Reply with quote

I think with SHRLEVEL NONE and COPYDDN , the image copy dataset is created but dataset record is entered to SYSCOPY only when RELOAD phase or entire reorg job successfully completes.

I tried to simulate and cancelled the job during reload phase the table went into recovery pending and I was not able to recover using inline image copy dataset as its entry was not there in syscopy.

Please let me know if my understanding is correct?
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Mon Aug 12, 2013 10:52 pm    Post subject:
Reply with quote

Quote:
record is entered to SYSCOPY only when RELOAD phase or entire reorg job successfully completes

There is no scope for OR here. Entire job has to complete successfully for SYSCOPY entries. Entries are done in UTILTERM phase. There are two, first REORG is recorded and then IMAGECOPY.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Tue Aug 13, 2013 1:49 pm    Post subject:
Reply with quote

Thanks Agkshirsagar
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy physical Tape files to a Mainfra... Dadi Krishna Teja JCL & VSAM 11 Thu May 16, 2019 10:25 pm
No new posts How to copy\replace the members in pr... abdulrafi JCL & VSAM 6 Fri Mar 22, 2019 7:02 pm
This topic is locked: you cannot edit posts or make replies. Copy one file to possible multiple files dibyendumandal11111 SYNCSORT 9 Fri Mar 08, 2019 2:47 am
No new posts how to copy a sequential dataset by u... javen777 JCL & VSAM 3 Thu Feb 21, 2019 11:37 pm
No new posts Copy members from Input PDS to Output... Poha Eater JCL & VSAM 9 Tue Jan 29, 2019 3:56 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us