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

Getting dissimilar records from two files into another file


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mubashir.surury

New User


Joined: 29 Sep 2005
Posts: 23
Location: Pune

PostPosted: Thu Mar 16, 2006 3:55 pm
Reply with quote

hi freinds,
There are 2 files
eg file1 contains foll records
1234
2324
2334
3534

file2 contains
1234
2334
0092
7372

can u give me a jcl that will give only those records that are in file2 but not in file1

In the above case output would be
0092
7372
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Mar 16, 2006 4:51 pm
Reply with quote

mubashir.surury,

Here is DFSORT Trick to do, what you need...

Regards,
Priyesh.
Back to top
View user's profile Send private message
mubashir.surury

New User


Joined: 29 Sep 2005
Posts: 23
Location: Pune

PostPosted: Thu Mar 16, 2006 6:41 pm
Reply with quote

hey priyesh,
thanks for prompt reply
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Joining files with intermittent heade... SYNCSORT 1
No new posts Format data from multiple records usi... SYNCSORT 4
No new posts IGYPG3178-I when compiling a pgm read... COBOL Programming 6
No new posts INPFIL FILES, FNAMES examples SYNCSORT 7
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
Search our Forums:


Back to Top