Hi,
I am working on a reconciliation process where we use 50+ text files as input (using directory tool) to do some reconciliation. The reconciliation process has been built and working fine. The new requirement is if the output contains zero records (means no reconciliation issues), it should be written to a different folder with "_none" suffix in the file name. And if the output has more than zero (0) records (means reconciliation issues), it should be written as usual in the designated folder in network drive.
Important: We have to write the output in different folders based on the number of records. We should not first write the output file and then read it again to build the rest of the process.
Records = 0, Output File Name: "FileName_DateStamp_none.xlsx"
Records >0, Output File Name: "FileName_DateStamp.xlsx"
I would appreciate if you could point me in the right direction please. Thank you!