Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Create file with non-matching records

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

New User


Joined: 22 Nov 2007
Posts: 55
Location: Germany

PostPosted: Wed Sep 08, 2010 11:52 am    Post subject: Create file with non-matching records
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: 55
Location: Germany

PostPosted: Wed Sep 08, 2010 11:58 am    Post subject:
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    Post subject:
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: 55
Location: Germany

PostPosted: Wed Sep 08, 2010 6:41 pm    Post subject:
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: 578
Location: USA

PostPosted: Wed Sep 08, 2010 7:10 pm    Post subject:
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: 55
Location: Germany

PostPosted: Wed Sep 08, 2010 10:39 pm    Post subject:
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    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 Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 4 Thu Dec 14, 2017 3:52 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us