Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

DFSort - Can MERGE create exception files?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Chris Leggett

New User


Joined: 29 Mar 2005
Posts: 1
Location: Liverpool, England

PostPosted: Tue Mar 29, 2005 8:11 pm    Post subject: DFSort - Can MERGE create exception files?
Reply with quote

I need to compare 2 large files (A and B) and produce a third file (C) containing any records which are on file A but Not on file B.

Files A and B are the same format, as they are tables downloaded from DB2. File C will also be identical format.

I am sure this can be done with DFSort, as it sounds so simple, but am not sure how.
Any help would be gratefully received. Thanks.
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Tue Mar 29, 2005 10:07 pm    Post subject:
Reply with quote

You can use the SPLICE operator of DFSORT's ICETOOL to do this kind of thing. Exactly how you would do it depends on exactly what you want to do. So you need to supply some more information:

What is the RECFM and LRECL of FileA and FileB? What is the starting position, length and format of the "key" you want to use for the comparison? Or do you want to compare the entire record?

Please show an example of the records in FileA and the records in FileB and the expected output records. If FileA can have duplicates, show that in your example. If FileB can have duplicates, show that in your example.
Back to top
View user's profile Send private message
die7nadal

Active User


Joined: 23 Mar 2005
Posts: 156

PostPosted: Tue Mar 29, 2005 11:05 pm    Post subject: Re: DFSort - Can MERGE create exception files?
Reply with quote

Chris Leggett wrote:
I need to compare 2 large files (A and B) and produce a third file (C) containing any records which are on file A but Not on file B.

Files A and B are the same format, as they are tables downloaded from DB2. File C will also be identical format.

I am sure this can be done with DFSort, as it sounds so simple, but am not sure how.
Any help would be gratefully received. Thanks.


I am not sure if you can do this through SORT, but you can do it through COMPAREX. Give FILE A in SYSUT2 and FILE B in SYSUT1 and Just define FILE C in SYSUT3 DD and in SYSIN DD try to Differentiate the records that u want in FILE C through the use of some KEY and then give COPYDIFF Key word. If you dont have COMPAREX in your shop, you should be having a equivalent utility for doing Compares.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us