
Once it's a date basic subtraction from the current date and if you need to delete it use DELETE()*/įile_date = input(reverse(substr(reverse(name), 5, 8)), yymmdd8. Use the substr() to extract the date, reverse it back to original format, and use INPUT() to convert to a SAS date. Reverse the file name and extract the characters needed. *Use INPUT(), REVERSE(), SUBSTR() to get the date. %put Directory &dir cannot be open or does not exist


If it doesn't work, explain why including code/log. How to Find and Delete Files Older than 30 days in Linux Posted on: Septem| By: admin Comments Off The best practice is to remove old and unused files from your server. Can't test it but would be something like this.
