I have an input file with employee details records with their work hours. Each employee in the Input file, may have more than one record with different work hours. I need to send the email to each of these employees in this Input file, with an attachment containing only their relevant details from the Input file.
I am thinking to firstly fetch the unique records from a particular column in the Input file into a temporary file and then use "for" loops with call function.
But I'm not sure how to fetch only the unique records from a particular column, into a temporary file.
For example, below is the sampleinput file:
Manager email, manager id,employee number, Emp name, weekly hours, Employee email
Mana@gmail.com,M1,1324,Siri1, 23, Siri1@gmail.commana@gmail.com,M1,1325,Siri2, 59, Siri2@gmail.comMana@gmail.com,M1,1325,Siri2, 32, Siri2@gmail.comMana@gmail.com,M1,1326,Siri3, 41, Siri3@gmail.comMana@gmail.com,M1,1326,Siri3, 18, Siri3@gmail.com
Now my temporary file should only contain the employee numbers 1324, 1325, 1326 from the Input file.
I have searched online but couldn't find any hints to this.
I'm new to Batch scripting and any help would be appreciated.