Posted: Thu Aug 09, 2007 5:26 am Post subject: Matching two files and updating one file
Hi
I have two files
File1: Emloyee number - 8 bytes
Salary - 15 bytes
Employee numbers are unique and it is not is sorted order.
File2: Employee master file with employee details; file length of 316 bytes
Employee number will be starting at 119 with length of 8 bytes
Duplicate employee records might exist.
I want to match File2's Employee number with that of File1's and if match found then keep the Salary from File1 starting at 217 of File2.
So even duplicate employee number exist in File2 each record of such employee should be updated.
I have tried following SPLICE code but it updating only one employee record, not all records with such employee number
Thanks Kolusu I am very happy that I am a member of this forum, as many of my doubts are getting clarified by experts. Once again thank u very much. _________________ Thanks
Madhu Sudhan
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum