Hi Community,
I am trying to copy the current date files from the agent path and send the files in the attachment with the below script. If i give the filename fully i am able to receive the files in attachment in the mail but i need to copy the files of current date.
It would be helpful if anyone help me with this,
cd /automic/12.3.7/Automation.Platform/Agents/unix/FILES
: SET &TODAY# = SYS_DATE("YYYYMMDD")
: Print "checking date:&TODAY#"
ls
: SET &RECIPIENTS# = "********"
: SET &ATTACHMENT# = "/automic/12.3.7/Automation.Platform/Agents/unix/FILES/INVREC_COMS_&TODAY#*_*.CSV"
: SET &RET_MAIL# = SEND_MAIL("&RECIPIENTS#", "***********", "BY STOCK FILES", "Hello All, Kindly refer above attachment OF BY STOCK FILES.","&ATTACHMENT#", "*****", "******")
Thanks and regards,
Shravya