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.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.