IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Copy unmatched members in 2 datasets


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vin12pr
Warnings : 1

New User


Joined: 14 Jun 2006
Posts: 56

PostPosted: Tue May 22, 2007 10:27 am
Reply with quote

I have 2 PDS's. Both of them have some members. I need to copy only those members which are not common in both of the datasets.

Can anybody propose some solution to this??

Vin12pr
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue May 22, 2007 1:08 pm
Reply with quote

Create a member list of PDS1. Create a member list of PDS2. Eliminate the duplicate member names. The end result should be a list of member names that are not common. Run those names through the IEBCOPY program.
Back to top
View user's profile Send private message
vin12pr
Warnings : 1

New User


Joined: 14 Jun 2006
Posts: 56

PostPosted: Tue May 22, 2007 1:48 pm
Reply with quote

Lets say If I have around 1000 members in each of them..Then the above process will be a tedious one.

What do u say?

Thnx,
Vin12pr
Back to top
View user's profile Send private message
kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Tue May 22, 2007 2:20 pm
Reply with quote

Nope,

What "superk" suggested is perfect for more members. Try it out..
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue May 22, 2007 9:17 pm
Reply with quote

vin12pr wrote:
Lets say If I have around 1000 members in each of them..Then the above process will be a tedious one.

What do u say?

Thnx,
Vin12pr


Tedious? For whom? You only have to write the code once. I doubt that the mainframe ever experiences tedium. The whole process is trivial and would take a very short period of time to accomplish.
Back to top
View user's profile Send private message
mosinj

New User


Joined: 26 Nov 2006
Posts: 2
Location: pune

PostPosted: Wed May 23, 2007 8:43 am
Reply with quote

I feel if u write rexx code for this it will be easy
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
Search our Forums:

Back to Top