You mention changing a template so this means you're writing to an existing file. But you've specified the replace option, does that make sense for what you're doing?
Beyond this, you should probably talk to your tech support or SAS tech support, I don't think there's much further we can help you with here.
maybe you cann`t access the [C:\paycal.xlsx]. Right click the file → property→security. Check the user that used to run the sas pg. If it is not exist, add it. so you can fix the problem.
file permission have changed when you copy the file.
I had the same issue then realized someone else had changed the name of the path directory where I was trying to place the EXCEL files. Make sure you have access to write wherever SAS is trying to write.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.