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
 

 

File matching through sort

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

New User


Joined: 15 Aug 2005
Posts: 62

PostPosted: Thu Jul 27, 2006 10:40 am    Post subject: File matching through sort
Reply with quote

Hi all
i have two files input and reference file. i want to use sort and do the following
if the input record matches with the reference file i want to write into output file the keys are branch and product
if the record not available i want to write into exception file


Input File

Code:

Branch    Product
1111         NR
1111         RE
1111         PH
2222         NR
3333         NR
4444         RE


Reference file:

Code:

Branch    Product   Loan
1111         NR          100
1111         PH          200
2222         NR          300
4444         RE          400
5555         RE          400


so output should be

Code:

Branch    Product   Loan
1111         NR          100
1111         PH          200
2222         NR          300
4444         RE          400


Exception file:

Code:

Branch    Product
1111         RE
3333         NR


regards
Balaji
Back to top
View user's profile Send private message

priyesh.agrawal

Senior Member


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

PostPosted: Thu Jul 27, 2006 10:50 am    Post subject: Re: File matching through sort
Reply with quote

Check this link...
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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am


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