@pmscorca Thanks for posting your query on Microsoft Q&A.
In batch files that have the .cmd
extension, you'll have to escape the %
characters that appear in SAS tokens. You can do that by adding an extra %
character next to existing %
characters in the SAS token string. The resulting character sequence appears as %%
. Make sure to add an extra ^
before each &
character to create the character sequence ^&
.
If you have questions, please let me know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.
Please don’t forget to Accept Answer and hit Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members for remediation for similar issues.