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

File matching through sort


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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: 1448
Location: Chicago, IL

PostPosted: Thu Jul 27, 2006 10:50 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Binary File format getting change whi... All Other Mainframe Topics 5
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
Search our Forums:

Back to Top