Help using Base SAS procedures

WARNING: The quoted string currently being processed has become more than 262 characters long

Accepted Solution Solved
Reply
Contributor
Posts: 51
Accepted Solution

WARNING: The quoted string currently being processed has become more than 262 characters long

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


Accepted Solutions
Solution
‎02-26-2014 12:04 PM
PROC Star
Posts: 1,231

Re: WARNING: The quoted string currently being processed has become more than 262 characters long

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

View solution in original post


All Replies
Solution
‎02-26-2014 12:04 PM
PROC Star
Posts: 1,231

Re: WARNING: The quoted string currently being processed has become more than 262 characters long

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

Contributor
Posts: 51

Re: WARNING: The quoted string currently being processed has become more than 262 characters long

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.

Occasional Contributor
Posts: 8

Re: WARNING: The quoted string currently being processed has become more than 262 characters long

Hello abcd123

 

can you please share the code that u had used for this error. I'm facing the same issue.

 

Thanks,

 

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 11488 views
  • 0 likes
  • 3 in conversation