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

records which are present on both files


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

Active User


Joined: 14 Jul 2005
Posts: 105

PostPosted: Wed Jul 22, 2009 11:33 pm
Reply with quote

Dear Experts,

I am in a siuation in production where I need a quick information of all the account which are present in file A and B both.Both the files are of differetnt lenght and having different record count.I know the field position where it should compare/search for the record
Following is the condtion

There are two files A and B

1)First file is of 800 length and the acct# is from position 6 to 10,its numeric ,this is file B.


b)The second file is of 130 length and the account is in position 1 to 4(This file is having other records also)…and the number of records are more than 5000 so I can not manually find out the records..This is file A

I want all the accounts which are there on file B and are also on file A.The number of records in both the files are not same…
Hope I am clear,I do not have soething ready quickly for this situation hence posting on this forum..
Please get back if I am not clear..Thanks for your help....
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Wed Jul 22, 2009 11:48 pm
Reply with quote

raghavmcs,

check the smart DFSORT trick "Create files with matching and non-matching records"

www.ibm.com/support/docview.wss?rs=0&uid=isg3T7000094
Back to top
View user's profile Send private message
raghavmcs

Active User


Joined: 14 Jul 2005
Posts: 105

PostPosted: Tue Jul 28, 2009 1:43 am
Reply with quote

Thanks this helped me out!
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 Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top