Hi, I'm trying to read the data from flat file and write data into multiple files based on the condition. The value of each line is checked with the FlagTable (Id NUMBER, FlagType VARCHAR(25), Flag CHAR(1)), If the Flag is True then new file has to be created and corresponding line has to be moved into new file otherwise it has to continue with the same file.