<?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: %UNQUOTE undoes quoting incorrectly - text truncated in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986636#M379975</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you, Tom SUPER USER, for resolving the issue with my original code.&amp;nbsp; Some pointers on the following questions would be&amp;nbsp; greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let p4 = %unquote(%nrstr(%nrstr(proc print data=sashelp.&amp;amp;dsn; run;)));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question 1: I understand that the inner %nrstr above protects everything inside parentheses. What does the outer %nrstr do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let p_x = %unquote(%nrstr(proc print data=sashelp.&amp;amp;dsn; run;));&lt;/P&gt;
&lt;P&gt;%put p_x;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;P_X=proc print data=sashelp.class&lt;/PRE&gt;
&lt;P&gt;Question 2:&amp;nbsp; Why do these parts [; run;] above get truncated?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2026 23:33:56 GMT</pubDate>
    <dc:creator>muhuri</dc:creator>
    <dc:date>2026-04-21T23:33:56Z</dc:date>
    <item>
      <title>%UNQUOTE undoes quoting incorrectly - text truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986579#M379963</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nonotes nodate nonumber nosource nosymbolgen;
/* Source: Carpenter's Complete Guide to the SAS Macro Language (pp 133-134) */
/* The author's original code is slightly modified here */
%let dsn = class;

%let p   = %nrstr(proc print data=sashelp.&amp;amp;dsn; run;);
%let p_x = %unquote(%nrstr(proc print data=sashelp.&amp;amp;dsn; run;));

%put The macro variable dsn contains the correct text: &amp;amp;=dsn;
%put;
%put The macro variable p contains the correct text: &amp;amp;=p;
%put;
%put The macro variable p_x contains the incorrect  (?) text: %superq(p_x);&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;The macro variable dsn contains the correct text: DSN=class
 
The macro variable p contains the correct text: P=proc print data=sashelp.&amp;amp;dsn; run;
 
The macro variable p_x contains the incorrect  (?) text: proc print data=sashelp.class&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Question: Why is some part &lt;CODE class="language-sas"&gt;[; run;] &lt;/CODE&gt;of the inetnded text &lt;CODE class="language-sas"&gt;of the macro variable p_x &lt;/CODE&gt;truncated? &lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Apr 2026 02:59:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986579#M379963</guid>
      <dc:creator>muhuri</dc:creator>
      <dc:date>2026-04-21T02:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: %UNQUOTE undoes quoting incorrectly - text truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986580#M379964</link>
      <description>&lt;P&gt;If you put %unquote() around a macro variable, that macro variable would be displayed or interpreted .&lt;/P&gt;
&lt;P&gt;Therefore, macro variable &amp;amp;p_x would translate &amp;amp;dsn into 'class', check the following . that is to say %superq() doesn't make any sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will see &amp;amp;p_x is already truncated in my code(check the bottom).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually, your code would look like this if you are using %unquote():&lt;/P&gt;
&lt;P&gt;&lt;CODE class="language-sas"&gt;%let p_x = proc print data=sashelp.class; run;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;the sas only know the first semicolon,&amp;nbsp; and 'run;' is a validate statement in sas. so the line above is actually two line or code.&lt;/P&gt;
&lt;P&gt;&lt;CODE class="language-sas"&gt;%let p_x = proc print data=sashelp.class;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class="language-sas"&gt;run;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nonotes nodate nonumber nosource nosymbolgen;
/* Source: Carpenter's Complete Guide to the SAS Macro Language (pp 133-134) */
/* The author's original code is slightly modified here */
%let dsn = class;

%let p   = %nrstr(proc print data=sashelp.&amp;amp;dsn; run;);
%let p_x = %unquote(%nrstr(proc print data=sashelp.&amp;amp;dsn; run;));

%put The macro variable dsn contains the correct text: &amp;amp;=dsn;
%put The macro variable p=&amp;amp;p ;
%put The macro variable p contains the correct text: &amp;amp;=p;
%put The macro variable p_x=&amp;amp;p_x ;
%put The macro variable p_x contains the incorrect  (?) text: %superq(p_x);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;The macro variable dsn contains the correct text: DSN=class
The macro variable &lt;STRONG&gt;p=proc print data=sashelp.&amp;amp;dsn; run;&lt;/STRONG&gt;
The macro variable p contains the correct text: P=proc print data=sashelp.&amp;amp;dsn; run;
The macro variable &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;p_x=proc print data=sashelp.class&lt;/STRONG&gt;&lt;/FONT&gt;
The macro variable p_x contains the incorrect  (?) text: proc print data=sashelp.class
&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Apr 2026 06:40:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986580#M379964</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-04-21T06:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: %UNQUOTE undoes quoting incorrectly - text truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986593#M379970</link>
      <description>&lt;P&gt;Now, my revised code (below) is:&lt;/P&gt;
&lt;P&gt;%put The macro variable p_x contain the incorrect (?) text: &amp;amp;=p_x;&lt;/P&gt;
&lt;P&gt;Output:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;The macro variable p_x contain the incorrect  (?) text: P_X=proc print data=sashelp.class&lt;/PRE&gt;
&lt;P&gt;What changes would I make to the SAS code to get the desired output of the macro variable p_x as follows?&lt;/P&gt;
&lt;P&gt;proc print data=sashelp.class; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/**************************************************************************************************************/&lt;/P&gt;
&lt;P&gt;ods html close;&lt;BR /&gt;options nonotes nodate nonumber nosource nosymbolgen;&lt;BR /&gt;/* Source: Carpenter's Complete Guide to the SAS Macro Language (pp 133-134) */&lt;BR /&gt;/* The code is slightly modified */&lt;BR /&gt;%let dsn = class;&lt;/P&gt;
&lt;P&gt;%let p = %nrstr(proc print data=sashelp.&amp;amp;dsn; run;);&lt;BR /&gt;%let p_x = %unquote(%nrstr(proc print data=sashelp.&amp;amp;dsn; run;));&lt;/P&gt;
&lt;P&gt;%put The macro variable dsn contains the correct text: &amp;amp;=dsn;&lt;BR /&gt;%put;&lt;BR /&gt;%put The macro variable p contains the correct text: &amp;amp;=p;&lt;BR /&gt;%put;&lt;BR /&gt;%put The macro variable p_x contain the incorrect (?) text: &amp;amp;=p_x;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 11:17:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986593#M379970</guid>
      <dc:creator>muhuri</dc:creator>
      <dc:date>2026-04-21T11:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: %UNQUOTE undoes quoting incorrectly - text truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986594#M379971</link>
      <description>&lt;P&gt;Try the following revised code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;117  %let dsn = class;
118
119  %let p = %nrstr(proc print data=sashelp.&amp;amp;dsn; run;);
120  %let p_x = %unquote(%nrstr(proc print data=sashelp.&amp;amp;dsn))%str(; run;);
121
122  %put The macro variable dsn contains the correct text: &amp;amp;=dsn;
The macro variable dsn contains the correct text: DSN=class
123  %put;

124  %put The macro variable p contains the correct text: &amp;amp;=p;
The macro variable p contains the correct text: P=proc print data=sashelp.&amp;amp;dsn; run;
125  %put;

126  %put The macro variable p_x contain the incorrect (?) text: &amp;amp;=p_x;
The macro variable p_x contain the incorrect (?) text: P_X=proc print data=sashelp.class; run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Apr 2026 12:09:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986594#M379971</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2026-04-21T12:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: %UNQUOTE undoes quoting incorrectly - text truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986597#M379972</link>
      <description>&lt;P&gt;The answer is clear when you run that code in open code.&amp;nbsp; Be your own macro processor and process this line of code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let p_x = %unquote(%nrstr(proc print data=sashelp.&amp;amp;dsn; run;));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;First resolve the %NRSTR() function to get:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let p_x = %unquote(proc print data=sashelp.&amp;amp;dsn; run;);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Which will then become the following THREE statements:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let p_x = proc print data=sashelp.class; run;;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;First an assignment statement.&lt;/P&gt;
&lt;P&gt;Then the RUN; statement.&lt;/P&gt;
&lt;P&gt;Then an empty statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What exactly are you trying to learn how to do?&lt;/P&gt;
&lt;P&gt;If you want to get text into macro variables without any macro quoting then it is easiest to do it with SAS code instead of MACRO code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  call symputx('p_x',"proc print data=sashelp.&amp;amp;dsn; run;");
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will but the two statements:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=sashelp.class; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;into the macro variable P_X.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which you could then execute by just expanding the macro variable:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;amp;p_x.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notice that if you use single quotes in the SAS code&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  call symputx('p_x','proc print data=sashelp.&amp;amp;dsn; run;');
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you instead of the value of DSN being in the macro variable P_X a reference to is there instead. So you could change the value of the macro variable DSN&amp;nbsp; to print a different dataset.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let dsn=cars;
&amp;amp;p_x.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 18:31:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986597#M379972</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-04-21T18:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: %UNQUOTE undoes quoting incorrectly - text truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986616#M379973</link>
      <description>&lt;P&gt;To get that %UNQUOTE() to work inside the %LET statement you need to add %NRSTR().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you trying to resolve DSN when making P?&amp;nbsp; If so then use %STR() instead of %NRSTR().&lt;/P&gt;
&lt;P&gt;Are you trying to resolve DSN when making P_X?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt; 75         %let p   = %str(proc print data=sashelp.&amp;amp;dsn; run;);
 76         %put &amp;amp;=p;
 P=proc print data=sashelp.class; run;
 77         %let p2  = %nrstr(proc print data=sashelp.&amp;amp;dsn; run;);
 78         %put &amp;amp;=p2;
 P2=proc print data=sashelp.&amp;amp;dsn; run;
 79         %let p3 =  %unquote(%nrstr(%str(proc print data=sashelp.&amp;amp;dsn; run;)));
 80         %put &amp;amp;=p3;
 P3=proc print data=sashelp.class; run;
 81         %let p4 =  %unquote(%nrstr(%nrstr(proc print data=sashelp.&amp;amp;dsn; run;)));
 82         %put &amp;amp;=p4;
 P4=proc print data=sashelp.&amp;amp;dsn; run;
 83         &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 14:20:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986616#M379973</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-04-21T14:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: %UNQUOTE undoes quoting incorrectly - text truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986636#M379975</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you, Tom SUPER USER, for resolving the issue with my original code.&amp;nbsp; Some pointers on the following questions would be&amp;nbsp; greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let p4 = %unquote(%nrstr(%nrstr(proc print data=sashelp.&amp;amp;dsn; run;)));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question 1: I understand that the inner %nrstr above protects everything inside parentheses. What does the outer %nrstr do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let p_x = %unquote(%nrstr(proc print data=sashelp.&amp;amp;dsn; run;));&lt;/P&gt;
&lt;P&gt;%put p_x;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;P_X=proc print data=sashelp.class&lt;/PRE&gt;
&lt;P&gt;Question 2:&amp;nbsp; Why do these parts [; run;] above get truncated?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 23:33:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986636#M379975</guid>
      <dc:creator>muhuri</dc:creator>
      <dc:date>2026-04-21T23:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: %UNQUOTE undoes quoting incorrectly - text truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986637#M379976</link>
      <description>&lt;P&gt;Second question first.&amp;nbsp; The RUN;; is not "truncated".&amp;nbsp; It just comes AFTER the end of the %LET statement.&amp;nbsp; And that is because the %UNQUOTE() function did what you asked it to do.&amp;nbsp; It REMOVED all of the macro quoting that was hiding the semi-colons from the SAS code interpreter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not exactly sure how it works, but it I think that basically the %NRSTR() protects the triggers in the text, but only temporarily.&amp;nbsp; So by nesting them you basically end up stopping the %UNQUOTE() from unquoting all the way down to plain text.&amp;nbsp; So even though you ran %UNQUOTE() the value stored in the macro variable still has macro quoting in it.&amp;nbsp; You can see this if you look at the value using the SASHELP.VMACRO view.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let p4 = %unquote(%nrstr(%nrstr(proc print data=sashelp.&amp;amp;dsn; run;)));

filename text temp;

data _null_;
  set sashelp.vmacro;
  where name='P4';
  file text;
  length=length(value);
  put value $varying100. length ;
run;

data _null_;
  infile text;
  input;
  list;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results&lt;/P&gt;
&lt;PRE&gt; RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0                      
 
 1   CHAR  .proc print data.sashelp..dsn. run.. 36
     ZONE  077662776672667617676667206760277600
     NUMR  102F30029E404141C31385C0EF43EE025EE2
 NOTE: 1 record was read from the infile TEXT.
       The minimum record length was 36.
       The maximum record length was 36.&lt;/PRE&gt;
&lt;P&gt;So those bytes with values like '01'x , '1C'x , '0F'x, '0E'x and '02'x are how the macro processor stores the macro quoting into the macro variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Contrast that to what is stored in the macro variable when you use SAS code to make instead of MACRO code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  call symputx('p4','proc print data=sashelp.&amp;amp;dsn; run;');
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt; RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0                      
 1         proc print data=sashelp.&amp;amp;dsn; run; 34
 NOTE: 1 record was read from the infile TEXT.
       The minimum record length was 34.
       The maximum record length was 34.&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Apr 2026 00:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986637#M379976</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-04-22T00:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: %UNQUOTE undoes quoting incorrectly - text truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986642#M379977</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nonotes nodate nonumber nosource nosymbolgen;
/* Source: Carpenter's Complete Guide to the SAS Macro Language (pp 133-134) */
/* The author's original code is slightly modified here */
%let dsn = class;

%let p   = %nrstr(proc print data=sashelp.&amp;amp;dsn ; run;);
%let p_x = %str(proc print data=sashelp.)&amp;amp;dsn%str(;run;);

%put The macro variable dsn contains the correct text: &amp;amp;=dsn;
%put ;
%put The macro variable p contains the correct text: &amp;amp;=p;
%put ;
%put The macro variable p_x contains the incorrect  (?) text: &amp;amp;p_x ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;The macro variable dsn contains the correct text: DSN=class

The macro variable p contains the correct text: P=proc print data=sashelp.&amp;amp;dsn ; run;

The macro variable p_x contains the incorrect  (?) text: &lt;STRONG&gt;proc print data=sashelp.class;run;
&lt;/STRONG&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Apr 2026 06:43:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986642#M379977</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-04-22T06:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: %UNQUOTE undoes quoting incorrectly - text truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986673#M379981</link>
      <description>&lt;P&gt;If you want the reference to DSN to resolve there is no need for TWO calls to %STR().&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%str(proc print data=sashelp.&amp;amp;dsn;run;);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Apr 2026 13:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UNQUOTE-undoes-quoting-incorrectly-text-truncated/m-p/986673#M379981</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-04-22T13:23:13Z</dc:date>
    </item>
  </channel>
</rss>

