For Programmers: Free Programming Magazines  


Home > Archive > Cobol > March 2005 > Compare PDSs for Members









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Compare PDSs for Members
ssb

2005-03-09, 3:55 am

Hi,

Suppose there are two PDSs (say 'A' and 'B') each with a huge number of
members.

A and B are expected to have some members with identical names. I need
to figure out which members of A are not present in B and which members
are common to both.

Obviously, manual check of the two PDSs would be cumbersome,
considering a big number of members.

Is there some way (REXX, batch FILE-AID etc) which can help me extract
the member list to a PS file..? Then I can compare the two files and
resolve my problem..?

Thanks..

Colin Campbell

2005-03-09, 3:55 am

ssb wrote:

>Hi,
>
>Suppose there are two PDSs (say 'A' and 'B') each with a huge number of
>members.
>
>A and B are expected to have some members with identical names. I need
>to figure out which members of A are not present in B and which members
>are common to both.
>
>Obviously, manual check of the two PDSs would be cumbersome,
>considering a big number of members.
>
>Is there some way (REXX, batch FILE-AID etc) which can help me extract
>the member list to a PS file..? Then I can compare the two files and
>resolve my problem..?
>
>Thanks..
>
>
>

I believe that File-Aid would do the job for you.

Another choice might be the ISPF option for invoking Super-C. As best I
can recall, Super-C would give you a report saying things like
(This is entirely inaccurate with respect to the actual wording)
PDS A has 3072 members.
PDS B has 2945 members.
There are 305 members in PDS A not contained in PDS B.
There are 178 members in PDS B not contained in PDS A.
There are 2767 members common to both libraries.
Then, it would get into how many of those commonly named members match
each other, etc.

Obviously, you could also create member lists of the two libraries, and
write a program to do a two file match, and produce a similar report at
the member name level. But then, you'd have to use something like
IEBPTPCH to print out the contents of every member of each PDS, and
write a program to do the comparisons of the member data where the names
match.

Almost certainly, Super-C would do that better than you could without
your spending 1000 hours on the program.

SkippyPB

2005-03-09, 3:55 pm

On 8 Mar 2005 19:25:39 -0800, "ssb" <mail_ssb@yahoo.com> enlightened
us:

>Hi,
>
>Suppose there are two PDSs (say 'A' and 'B') each with a huge number of
>members.
>
>A and B are expected to have some members with identical names. I need
>to figure out which members of A are not present in B and which members
>are common to both.
>
>Obviously, manual check of the two PDSs would be cumbersome,
>considering a big number of members.
>
>Is there some way (REXX, batch FILE-AID etc) which can help me extract
>the member list to a PS file..? Then I can compare the two files and
>resolve my problem..?
>
>Thanks..


Have you looked at the IEBCOMPR Utility?

Regards,

////
(o o)
-oOO--(_)--OOo-


"The key to someone's heart is never lost:
It's just that the locks were changed 'cause
you're some sort of psycho."
-- Jean Sorensen
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Remove nospam to email me.

Steve
Joe Zitzelberger

2005-03-11, 3:55 pm

In article <1110338739.708182.9300@f14g2000cwb.googlegroups.com>,
"ssb" <mail_ssb@yahoo.com> wrote:

> Hi,
>
> Suppose there are two PDSs (say 'A' and 'B') each with a huge number of
> members.
>
> A and B are expected to have some members with identical names. I need
> to figure out which members of A are not present in B and which members
> are common to both.
>
> Obviously, manual check of the two PDSs would be cumbersome,
> considering a big number of members.
>
> Is there some way (REXX, batch FILE-AID etc) which can help me extract
> the member list to a PS file..? Then I can compare the two files and
> resolve my problem..?
>
> Thanks..


SuperC will do this easily.
ssb

2005-03-12, 8:55 pm

Thanks Colin, Skippy and Joe....Your pointers helped a lot.....

SuperCE worked for now....

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com