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 

Data comparision

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
monaco
Beginner


Joined: 20 May 2004
Posts: 77
Topics: 31

PostPosted: Tue May 10, 2005 11:47 am    Post subject: Data comparision Reply with quote

Hi all,

is there any tool for comparing the data of two tables without downloading both into a differents files and compare these?

Kind regards.
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 May 10, 2005 12:01 pm    Post subject: Reply with quote

Monaco,

Unless I am missing something , why can't you do it via Spufi or QMF?

Code:

SELECT A.KEY
      ,A.COMPARE_COL
      ,B.COMPARE_COL
  FROM TABLE1 A
      ,TABLE2 B
 WHERE A.KEY = B.KEY
   AND A.COMPARE_COL <> B.COMPARE_COL
;


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
monaco
Beginner


Joined: 20 May 2004
Posts: 77
Topics: 31

PostPosted: Tue May 10, 2005 12:18 pm    Post subject: Reply with quote

Thanks Kolusu,

the problem is we want to compare the data of two tables with the same structure but problably different data in each column.
We dont have a 'KEY' column.

We are trying to compare 200 tables.

Thanks.

Kind regards.
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 May 10, 2005 1:16 pm    Post subject: Reply with quote

Quote:

the problem is we want to compare the data of two tables with the same structure but problably different data in each column. We dont have a 'KEY' column.


Monaco,

Let us assume that you have 2 tables.

Table 1 has 10 rows and table2 has 20 rows.

So you want to compare the 1st row of table1 to the first row of table2 or do you want to compare the 1st row of table1 to ALL the rows of table2?

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


Joined: 20 May 2004
Posts: 77
Topics: 31

PostPosted: Tue May 10, 2005 4:01 pm    Post subject: Reply with quote

Kolusu,

We want to compare the 1st row of table1 to ALL the rows of table2.

Thanks.
Back to top
View user's profile Send private message
monaco
Beginner


Joined: 20 May 2004
Posts: 77
Topics: 31

PostPosted: Wed May 11, 2005 8:46 am    Post subject: Reply with quote

Hope you can understand the example and sorry for my english.

I want to compare the data in two tables with the same structure. I'd like to know a ouput saying there are 3 rows in table 1 which are not in table 2 and 15 rows in table 2 which are not in table 1.

At the moment we download both tables and compare the files through
Code:

//SUPERC  EXEC PGM=ISRSUPC,                                   
//            PARM=(DELTAL,LINECMP,                           
//            '',                                             
//            '')                                             
//NEWDD  DD DSN=AISD.S3DA.INTESB30.KTCTVAT.CCOMPARE.S100305,   
//          DISP=SHR                                           
//OLDDD  DD DSN=AISD.S3DA.MASTSB30.KTCTVAT.CCOMPARE.S100305,   
//          DISP=SHR                                           
//OUTDD  DD  DISP=(NEW,CATLG,CATLG),                           
//            DSN=AISD.S3DA.COMPSB30.KTCTVAT.CCOMPARE.S100305,
//            DCB=(RECFM=FB,LRECL=309,BLKSIZE=27810),         
//            UNIT=SYSDA,SPACE=(CYL,(1,9))                     

We'd like to find a similar output but without downloading the tables.

Kind regards.
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: Wed May 11, 2005 8:53 am    Post subject: Reply with quote

Monaco,

As far as I Know there is no utility which can compare 2 different tables. I guess you have to download the compare them.

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


Joined: 20 May 2004
Posts: 77
Topics: 31

PostPosted: Thu May 12, 2005 9:48 am    Post subject: Reply with quote

Thanks for your help.
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