Based on The Employee id, checking the Last Modified date and Employee Status Fields
Get Flag (ie '1') by creating monthly columns for the particular employee (identified by Employee Id) till the employee is present in the organization (Identified by Last Modified Date and Employee Status)
Input File
Output File