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.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.