MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how can i do it in jcl(remove matching dups)

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
doubt_man
Beginner


Joined: 12 Mar 2004
Posts: 15
Topics: 6

PostPosted: Sat Mar 20, 2004 4:38 am    Post subject: how can i do it in jcl(remove matching dups) Reply with quote

hi all,
i have two input files. i want in the output files only those records which are in first file and not in second file. for example if file 1 contains A+B records and file 2 contains A records, then in the output file should contain only B files.how can i do it in jcl?
to make the thing more clear, here is what i want.
file1----1,2,3,4,5,6
file2----1,2,3,6
outputfile 4,5
Back to top
View user's profile Send private message Yahoo Messenger
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Sat Mar 20, 2004 5:57 am    Post subject: Reply with quote

Assuming records in file 2 are always present in file 1, SORT with SUM=NONE will do.
Back to top
View user's profile Send private message Send e-mail
doubt_man
Beginner


Joined: 12 Mar 2004
Posts: 15
Topics: 6

PostPosted: Sat Mar 20, 2004 6:25 am    Post subject: Reply with quote

hi dibakar,
if i understand it correctly , sum=none will delete only the duplicates. but i dont even want 1 occurance of that record if the same record is in both the files. instead, i want everything other than the matching records. i will make myself clear.
file1 has entries 1,2,3,4,5,6
file 2 has entries 3,4,5.
now we have 3,4,5 in both the files. now if we give sum=none, wont we get 1,2,3,4,5,6 again? i dont want this. i want only 1,2,6. (ie entries in file1 minus entries in file 2)
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Sat Mar 20, 2004 8:49 am    Post subject: Reply with quote

Doubtman,

Please search before posting. A simple search for "nodups" in utilities forums gave me the following topics which exactly discuss the same issue as yours.

http://www.mvsforums.com/helpboards/viewtopic.php?t=254&highlight=nodups

http://www.mvsforums.com/helpboards/viewtopic.php?t=8&highlight=nodups

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
doubt_man
Beginner


Joined: 12 Mar 2004
Posts: 15
Topics: 6

PostPosted: Tue Mar 23, 2004 8:36 am    Post subject: Reply with quote

thank you kolsu ,
it worked.
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group