Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Compare views in Test and Prod

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

New User


Joined: 26 Jun 2007
Posts: 20
Location: Chennai

PostPosted: Fri Sep 10, 2010 12:47 pm    Post subject: Compare views in Test and Prod
Reply with quote

Hi,
I have to compare the list of tables pertaining to a application in test and prod environment to set up a test region.
I am querying SYSIBM.SYSPLANDEP in test and prod , comparing results manually.When i tried to put a join on TEST.SYSIBM.SYSPLANDEP and PROD.SYSIBM.SYSPLANDEP tables i am getting SQL CODE -512.

From SQL code I understand that I am unable to join prod and since they are in different regions and its not a federated DB.(federated - googled and found this word ).

Is there an alternate way to achieve this task .

db: DB2 on ZOS

Kindly give your suggestions.

Thanks in advance.

Regards,
Mohan
Back to top
View user's profile Send private message

GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Fri Sep 10, 2010 1:30 pm    Post subject:
Reply with quote

you need to copy prod table to a private table or a DGTT in test and join with that one.
At least, that's what I always do.

Or on a LUW db2 create two aliases : one to TEST and one to PROD.
On LUW you can create aliases and join, not so on z/OS.
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 compare 2 rows within the same file ram_vizag SYNCSORT 7 Wed Jun 14, 2017 12:34 am
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm
No new posts fuzzy compare Martylin JCL & VSAM 9 Thu Mar 30, 2017 2:45 pm
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us