Compare two PDSs to create another using JCL.

JES2/3, JCL, utilities.
Post Reply
Prince Mainframe
New Member
Posts: 2
Joined: Tue Aug 12, 2014 9:12 am

Compare two PDSs to create another using JCL.

Post 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
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Compare two PDSs to create another using JCL.

Post 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=
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”