The script is written in Unix
Unix is an Operating System, not a scripting language.
Ask your sysadmin which shell is used on your location for this script.
You may try something like this:
mv reportname newname$(date +%Y-%m-%d_%H_%M).rpt
Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244