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
 

 

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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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