Page 1 of 1

Compare two PDSs to create another using JCL.

Posted: Thu Jun 18, 2015 8:59 pm
by Prince Mainframe
Hi,

Suppose PDS1 have 5 members M1, M2, M3, M4, M5 and PDS 2 have M4, M5, M6, M7, M8, M9, M10. I need to create 3rd PDS that should have all the members from PDS1 and PDS2 but no duplicate members so the PDS3 should have M1, M2, M3, M4, M5, M6, M7, M8, M9, M10. How can I do that?

Assume that duplicate members in PDS1 and 2 have same date so no harm in eliminating duplicates. Please guide me on this to create a JCL.

Thanks

Re: Compare two PDSs to create another using JCL.

Posted: Thu Jun 18, 2015 9:16 pm
by enrico-sorichetti
if You know that You just want to merge the two PDSs and the content of the common members is the same

why the need to compare

read about the iebcopy capabilities, here for example

http://publibz.boulder.ibm.com/cgi-bin/ ... 3348&CASE=