Hi All,
I have to select the latest file. In the file the headers are in the 5th row but some time there are no headers at all. So in that case we need to select the 2nd latest file and check if headers are in it or not and keep repeating until I get a valid file. Once I get the valid file will process further and no need to check further.
So I am sorting the files in such way that latest file is at the top and using an iterative macro to check each file one by one. and the put a filter based on the condition to check but by this I am getting only 1 row in my output . I need to put in a new column with a flag say true or 1 in each row of the dataset when we get a valid file so that all dataset is picked once we get a valid file. I tried but did not had any luck.
Could anyone please suggest what we could do here?
I there is another solution design available, that would also be great.