<?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 Semi Colon in Macro and Datastep in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Semi-Colon-in-Macro-and-Datastep/m-p/917012#M361208</link>
    <description>&lt;DIV&gt;How can I include a semi-colon in the variable created in a data step?&amp;nbsp; I found a post that talked about superq, but it seems to not work for me in this case.&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
&amp;nbsp; length result1 $3000;
result1 = catx(' ',&amp;nbsp; result1, 'Hello world', 40.);
&amp;nbsp; call symputx('defineAnalysis1',&amp;nbsp; &amp;nbsp; &amp;nbsp; result1, 'g');&amp;nbsp;
run;
/*This shows Hello world*/
/*how to make it show Hello world;*/
%put &amp;amp;defineAnalysis1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 17:36:58 GMT</pubDate>
    <dc:creator>DavidPhillips2</dc:creator>
    <dc:date>2024-02-20T17:36:58Z</dc:date>
    <item>
      <title>Semi Colon in Macro and Datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Semi-Colon-in-Macro-and-Datastep/m-p/917012#M361208</link>
      <description>&lt;DIV&gt;How can I include a semi-colon in the variable created in a data step?&amp;nbsp; I found a post that talked about superq, but it seems to not work for me in this case.&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
&amp;nbsp; length result1 $3000;
result1 = catx(' ',&amp;nbsp; result1, 'Hello world', 40.);
&amp;nbsp; call symputx('defineAnalysis1',&amp;nbsp; &amp;nbsp; &amp;nbsp; result1, 'g');&amp;nbsp;
run;
/*This shows Hello world*/
/*how to make it show Hello world;*/
%put &amp;amp;defineAnalysis1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 17:36:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Semi-Colon-in-Macro-and-Datastep/m-p/917012#M361208</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2024-02-20T17:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Semi Colon in Macro and Datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Semi-Colon-in-Macro-and-Datastep/m-p/917015#M361210</link>
      <description>The easiest way:  include the semicolon when replacing RESULT1.  The 3rd parameter in CATX would become:&lt;BR /&gt;&lt;BR /&gt;'Hello world:'&lt;BR /&gt;&lt;BR /&gt;Do you have some conditions that would make this a bad idea?</description>
      <pubDate>Tue, 20 Feb 2024 17:53:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Semi-Colon-in-Macro-and-Datastep/m-p/917015#M361210</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2024-02-20T17:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Semi Colon in Macro and Datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Semi-Colon-in-Macro-and-Datastep/m-p/917016#M361211</link>
      <description>&lt;P&gt;You just put the semi-colon where you want it, and then you will need to %QUOTE the results&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  length result1 $3000;
  result1 = catx(' ',  result1, 'Hello world;',40);
  call symputx('defineAnalysis1',      result1, 'g'); 
run;
/*This shows Hello world*/
/*how to make it show Hello world;*/
%put %quote(&amp;amp;defineAnalysis1);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Feb 2024 17:53:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Semi-Colon-in-Macro-and-Datastep/m-p/917016#M361211</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-02-20T17:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Semi Colon in Macro and Datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Semi-Colon-in-Macro-and-Datastep/m-p/917018#M361212</link>
      <description>&lt;P&gt;Thanks, I was googling escape characters for a while.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 18:01:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Semi-Colon-in-Macro-and-Datastep/m-p/917018#M361212</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2024-02-20T18:01:00Z</dc:date>
    </item>
  </channel>
</rss>

