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

Create file with non-matching records


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

New User


Joined: 22 Nov 2007
Posts: 64
Location: Germany

PostPosted: Wed Sep 08, 2010 11:52 am
Reply with quote

Hi,

could anybode help me to solve the following problem ?
I like to create a file with non-matching records :

File 1 contains only no duplicate keys on pos. 1 to 3.
File 2 contains data including a duplicate key on pos. 4 to 6.
I need an output file containing all record from file 2 with non-matching keys from file 1.

Exampel :

Code:
file 1        file 2              Output file
AAA         100AAAaa      400DDDd1
BBB         400DDDd1     400DDDd2
CCC        101AAAaa      500EEEee
               200BBBbb
               401DDDd2
               500EEEee
Back to top
View user's profile Send private message
oerdgie

New User


Joined: 22 Nov 2007
Posts: 64
Location: Germany

PostPosted: Wed Sep 08, 2010 11:58 am
Reply with quote

Sorry for the shifting in the exampel, here once more :

file 1
------
AAA
BBB
CCC

file 2
------
100AAAaa
400DDDd1
101AAAaa
200BBBbb
401DDDd2
500EEEee

output file
------------
400DDDd1
401DDDd2
500EEEee
Back to top
View user's profile Send private message
smijoss

Active User


Joined: 30 Aug 2007
Posts: 114
Location: pune

PostPosted: Wed Sep 08, 2010 12:04 pm
Reply with quote

have you tried reading JOINKEYS for DFSORT
Back to top
View user's profile Send private message
oerdgie

New User


Joined: 22 Nov 2007
Posts: 64
Location: Germany

PostPosted: Wed Sep 08, 2010 6:41 pm
Reply with quote

Thanks, I tried JOINKEYS, it's new for me...
but it works perfectly for my problem icon_biggrin.gif
Back to top
View user's profile Send private message
sqlcode1

Active Member


Joined: 08 Apr 2010
Posts: 577
Location: USA

PostPosted: Wed Sep 08, 2010 7:10 pm
Reply with quote

oerdgie,
So did you get desired results or do you still need something be done?

Thanks,
Back to top
View user's profile Send private message
oerdgie

New User


Joined: 22 Nov 2007
Posts: 64
Location: Germany

PostPosted: Wed Sep 08, 2010 10:39 pm
Reply with quote

Hi sqlcode1,

thanks for asking, now get my desired results.

Regards oerdgie
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top