Yes, just replace
files=CARE01_DLY_???_`date '+%Y%m%d'`
with
files=${1}_???_`date '+%Y%m%d'`
I am now going to close this thread to prevent it from being posted to again with new questions, as anyone posting to it would be unlikely to find anyone willing to read 62 posts so they could understand the question being asked.