Hello,all
I am trying to execute a dos command within sas:
%sysExec copy "&file" "&new_destination";
however, I got a warning message
WARNING: The quoted string currently being processed has become more than 262 characters long. You may have unbalanced quotation marks.:
Apparently, it is my macro variable &file that is too long.
I tried options NOQUOTELENMAX; the warning message is gone, however, still no file is copied to the new_destination.
Can anyone help to solve this problem? Thanks
I would try replacing the macro vars with hard coded values, and see if it's happy then.
Most likely the value of &file aor &new_destination is not what you expect.
%put &file being copied to &new_destination ;
Once you have it working without macro vars, then go back to using the macro vars.
Message was edited by: Quentin McMullen
I would try replacing the macro vars with hard coded values, and see if it's happy then.
Most likely the value of &file aor &new_destination is not what you expect.
%put &file being copied to &new_destination ;
Once you have it working without macro vars, then go back to using the macro vars.
Message was edited by: Quentin McMullen
Thank you for help. I found out what the problem is: there are too many spaces tailoring in macro variable &file. After those spaces are removed, it worked.
Hello abcd123
can you please share the code that u had used for this error. I'm facing the same issue.
Thanks,
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.