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

To compare rows wise datas for same table in Prod and Test


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

New User


Joined: 04 Aug 2008
Posts: 46
Location: Chennai

PostPosted: Mon Aug 18, 2008 1:18 pm
Reply with quote

Hi Folks,

I need to compare row wise data for the same table in both production and test and need to list the non-matching rows, I tried to unload the two tables to flat files and do a 3.13 compare but I'm not getting the desired results. Does anyone have better solutions....
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Aug 18, 2008 3:04 pm
Reply with quote

db2 vsn 9 has an object compare utility.

google has about 887,000 hits on 'comparing db2'

write your own. sysrecs to compare, syspunch would provide column name based on offset.
Back to top
View user's profile Send private message
VVRAVINDRA

New User


Joined: 04 Aug 2008
Posts: 46
Location: Chennai

PostPosted: Mon Aug 18, 2008 3:22 pm
Reply with quote

Hi Thanks for the reply..Googling didn't get me thru my destiny...If you have some kind of JCL that could help me...it would be grateful
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Aug 18, 2008 3:25 pm
Reply with quote

jcl for what?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 18, 2008 8:08 pm
Reply with quote

Hello,

Quote:
but I'm not getting the desired results.
What results are you getting? What results do you want?

If you post a bit of sample data from the 2 unloads and the undesired result from the compare, we may be able to offer suggestions.

Is it possible that the table definitions are now different between prod and test? If so, you will need to work with individual columns rather than entire rows (or write your own compare).
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 Load new table with Old unload - DB2 DB2 6
No new posts To get the count of rows for every 1 ... DB2 3
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top