Hi,
I have 2 VB input files.
File1:
RAJESH,M,111,AAAA
RAMS,M,22,BBB
SURESH,M,3333,CCCC
File2:
Employeedetails,111,10,20,30
Employee,22,100,20,3
Employeeposition,3333,1,60,300
The above are 2 input files. I need some data from file1 and some data from file2. Key is 111, 22 and 3333 are these are common in both the files. As these files are Comma delimited we don't know exactly the length of each field, so we cannot use FIXLENGTH while Parsing.
Output file:
Employeedetails,111,Rajesh,10,20,30
Employee,22,RAMS,100,20,3
Employeeposition,3333,SURESH,1,60,300
Could you please let me know how can we do this using sort. Lets say the records are in sorted order.