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

How to retrieve data from image copy and quiesce of table


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ashok.gkyadav

New User


Joined: 05 Sep 2006
Posts: 6

PostPosted: Thu Dec 07, 2006 11:59 am
Reply with quote

I have successfully run a one time fix program to update one of the fields in the table.
At the same time I also prepared an output file which holds the old value present in that field before updating it with new value. But some how due to coding mistake, the old value was overridden with new value in the file. Now how can I get back the old values in that particular field? I have the Image copy and quiesce of the table before and after updation. I don?t have any idea how to use these (Image copy and quiesce of the table) in getting back the old values. Can anyone of you please help me in this?
Back to top
View user's profile Send private message
ravi17s
Warnings : 1

New User


Joined: 15 Aug 2003
Posts: 57

PostPosted: Fri Dec 08, 2006 5:26 pm
Reply with quote

If you have an IMAGE copy you can Unload image copy and then load replace the table,but make sure that the tablesspace contains only one table.This is an BMC stuff.
Method 1:
UNLOAD
INFILE IMAGECOPY
UNLOADDN SYSREC ACTIVE(YES, NO)
SHRLEVEL CHANGE
CNTLDDN CNTL0001 SORTNUM 32
OUTPUT SYSREC
DSNAME 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
SPACE (100,500) UNIT SYSDA
ORDER NO

the CNTL0001 will contain the load control card you require.

Method 2:
RECOVER TABLESPACE xxxxxx.xxxxx
INCOPY
FULL DSNAME XXXXXXXXXXXXXXXXXXXXXX
SHRLEVEL REFERENCE
OUTCOPY YES OUTCOPYDDN LOCALP
TOCOPY LASTCOPY

My best sugestion would be to contact your DBA,they are always their to help you.

Thanks,
Ravi
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 Store the data for fixed length COBOL Programming 1
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts VB to VB copy - Full length reached SYNCSORT 8
Search our Forums:

Back to Top