I have file name like this CLM_20140504.I will get file everyday..I just need to check whether file is today's file and then process it.Please let me know how we can do this.
CLM will be common and date should be today's date.tomorrow file name will be CLM_20140604.I need to compare current date with filename date i.e 20140504.
The standard way of doing this is to archive the file to a different folder after processing it.
So your import (or whatever) just processes what is in the 'infiles' folder, regardless of its name.
One of the problems with your proposed method is what to do if the server is down for a day - you have to mess about forcing yesterday's file to be processed.
Another problem you will get is that the number of files in the folder builds up over time and you'll never be sure that all of them have been processed.
Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this
If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.
Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.