Comparing 2 PDSs

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
sourabhmittalcse
Member
Posts: 3
Joined: Tue Apr 28, 2015 2:07 pm

Comparing 2 PDSs

Post by sourabhmittalcse » Tue Apr 28, 2015 2:13 pm

Hi All ,

I have a requirement where in i have to compare PDSs
PDS1 (Contains 900 members) and PDS2(contains 26000 members)

Now, i have to make sure that all the members from PDS1 are present in PDS2 . So how can i compare the two PDSs and get to know what all members from PDS1 are missing in PDS2 ?

Thanks !

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Tue Apr 28, 2015 3:41 pm

Use your favourite method for listing member-names to a data-set. Do that with each PDS. Use JOINKEYS in SORT on the two datasets to find those on F1 and not on F2.

sourabhmittalcse
Member
Posts: 3
Joined: Tue Apr 28, 2015 2:07 pm

Post by sourabhmittalcse » Tue Apr 28, 2015 3:56 pm

Do we have any sample JCl for JOINKEYS ?

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Tue Apr 28, 2015 4:32 pm

Assuming you mean Control Cards not JCL, yes, there are examples here, in the manuals, elsewhere if you search-engine it.

sourabhmittalcse
Member
Posts: 3
Joined: Tue Apr 28, 2015 2:07 pm

Post by sourabhmittalcse » Tue Apr 28, 2015 6:21 pm

Thankyou!

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others