<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: WARNING: The quoted string currently being processed has become more than 262 characters long. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-quoted-string-currently-being-processed-has-become/m-p/387096#M92777</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/153928"&gt;@FP12&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Well, thanks, it worked.&lt;/P&gt;
&lt;P&gt;But I am not sure it's a good practice, but whatever ^^&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If that is in response to my "string" approach it is purely style.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Good practice" may have different definitions in different shops. But If it helps me keep from creating mismatched () or quotes I'm for it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most of the time I use call execute is where a a data set contains multiple values that I'm doing the same thing for so building strings using multiple variables is much cleaner when not in the middle of a call execute statement with the associated extra () and likely ;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2017 17:00:17 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-08-10T17:00:17Z</dc:date>
    <item>
      <title>WARNING: The quoted string currently being processed has become more than 262 characters long.  You</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-quoted-string-currently-being-processed-has-become/m-p/387037#M92755</link>
      <description>&lt;PRE&gt;%macro process_8
	(ext_output,
	transf_output_gr,
	transf_output_se,
	transf_output_su,
	rest_output_gr,
	rest_output_se,
	rest_output_su);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data _null_;
if "&amp;amp;HUIT" = "YES" then call execute('%nrstr(%process_8(
												ext_output = EXT_8, 
												transf_output_gr = TRANSF_8_GR, 
												transf_output_se = TRANSF_8_SE,
												transf_output_su = TRANSF_8_SU, 
												rest_output_gr = REST_8_GR, 
												rest_output_se = REST_8_SE, 
												rest_output_su = REST_8_SU)');
run;&lt;/PRE&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I defined a macro process_8, and then I call it like shown.&lt;/P&gt;&lt;P&gt;When I do this I have the warning in title.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I know I can manage it by removing the left part of the equal, but for readibility question I prefer to keep it.&lt;/P&gt;&lt;P&gt;How can I manage it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 14:49:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-quoted-string-currently-being-processed-has-become/m-p/387037#M92755</guid>
      <dc:creator>FP12</dc:creator>
      <dc:date>2017-08-10T14:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The quoted string currently being processed has become more than 262 characters long.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-quoted-string-currently-being-processed-has-become/m-p/387052#M92762</link>
      <description>&lt;P&gt;You would eliminate some complications and improve accuracy if you were to use a macro instead of CALL EXECUTE.&amp;nbsp; And you would definitely eliminate the problem about the length of a quoted string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You do have to decide whether you are using position parameters (as in the macro definition) or keyword parameters (as in the call to the macro).&amp;nbsp; But the structure would be pretty simple:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro run_this;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; %if "&amp;amp;HUIT" = "YES" %then %do;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %process_8&amp;nbsp;&amp;nbsp; (&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .... any sort of spacing and indentation that you please .....&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%mend run_this;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%run_this&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 15:21:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-quoted-string-currently-being-processed-has-become/m-p/387052#M92762</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-08-10T15:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The quoted string currently being processed has become more than 262 characters long.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-quoted-string-currently-being-processed-has-become/m-p/387054#M92763</link>
      <description>&lt;P&gt;First I believe your data step has unbalanced (. and is missing the ; for the macro call.&amp;nbsp;Removing most of the parameters so it is easier to read you call execute reduces to for readability:&lt;/P&gt;
&lt;PRE&gt;call execute('%nrstr(%process_8(	ext_output = EXT_8)');&lt;/PRE&gt;
&lt;P&gt;So call execute is likely grabbing way more code than you expect, such as the Run; and more. I am not sure that you actually need the %nrstr as if the macro call is within single quotes it should not try to expand during the data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another potential&amp;nbsp;issue could just be the way you have laid out the codel. Note that there are 7 lines to your call execute and the system call may be exanding about 60? tabs to around 300 characters.&lt;/P&gt;
&lt;P&gt;The first thing I would try would be to not make the code "pretty" with all of the indents for the parameters&lt;/P&gt;
&lt;PRE&gt;data _null_;
   if "&amp;amp;HUIT" = "YES" then call execute('%process_8(	ext_output = EXT_8,transf_output_gr = TRANSF_8_GR, 
   transf_output_se = TRANSF_8_SE,transf_output_su = TRANSF_8_SU, rest_output_gr = REST_8_GR, 
   rest_output_se = REST_8_SE, rest_output_su = REST_8_SU);');
run;&lt;/PRE&gt;
&lt;P&gt;Often when I'm working with call execute I have a long string variable in the code and will assign long values to that variable so the&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;call execute is shorter and easier to manage:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data _null_;
   length longstr $ 200;
   longstr = '	ext_output = EXT_8,transf_output_gr = TRANSF_8_GR, 
   transf_output_se = TRANSF_8_SE,transf_output_su = TRANSF_8_SU, rest_output_gr = REST_8_GR, 
   rest_output_se = REST_8_SE, rest_output_su = REST_8_SU';
   if "&amp;amp;HUIT" = "YES" then call execute('%process_8(	'||longstr||');');
run;&lt;/PRE&gt;
&lt;P&gt;which if the Longstr may be build out of variables from a data set gets much simpler than embedding all the concatenations likely needed into the call execute line itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 15:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-quoted-string-currently-being-processed-has-become/m-p/387054#M92763</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-10T15:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The quoted string currently being processed has become more than 262 characters long.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-quoted-string-currently-being-processed-has-become/m-p/387071#M92766</link>
      <description>&lt;P&gt;Well, thanks, it worked.&lt;/P&gt;&lt;P&gt;But I am not sure it's a good practice, but whatever ^^&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 15:55:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-quoted-string-currently-being-processed-has-become/m-p/387071#M92766</guid>
      <dc:creator>FP12</dc:creator>
      <dc:date>2017-08-10T15:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The quoted string currently being processed has become more than 262 characters long.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-quoted-string-currently-being-processed-has-become/m-p/387096#M92777</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/153928"&gt;@FP12&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Well, thanks, it worked.&lt;/P&gt;
&lt;P&gt;But I am not sure it's a good practice, but whatever ^^&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If that is in response to my "string" approach it is purely style.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Good practice" may have different definitions in different shops. But If it helps me keep from creating mismatched () or quotes I'm for it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most of the time I use call execute is where a a data set contains multiple values that I'm doing the same thing for so building strings using multiple variables is much cleaner when not in the middle of a call execute statement with the associated extra () and likely ;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 17:00:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-quoted-string-currently-being-processed-has-become/m-p/387096#M92777</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-10T17:00:17Z</dc:date>
    </item>
  </channel>
</rss>

