<?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: adding a &amp;quot;*&amp;quot; (star) symbol in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/adding-a-quot-quot-star-symbol/m-p/717694#M221979</link>
    <description>Tom. I think your method will work. I'll try it out and let you know. I was asking because I just wasn't sure about the "*" symbol because I wasn't sure whether SAS thought * meant "everything", the way excel does.</description>
    <pubDate>Mon, 08 Feb 2021 18:35:14 GMT</pubDate>
    <dc:creator>geneshackman</dc:creator>
    <dc:date>2021-02-08T18:35:14Z</dc:date>
    <item>
      <title>adding a "*" (star) symbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/adding-a-quot-quot-star-symbol/m-p/717666#M221967</link>
      <description>&lt;P&gt;Hi all. Say I have a data set with these variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID varA&amp;nbsp; varB&amp;nbsp; varAtext&amp;nbsp; footnote2&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp;12&amp;nbsp; &amp;nbsp; &amp;nbsp; 34&amp;nbsp; &amp;nbsp; &amp;nbsp; 12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * means caution in interpreting&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to add a "*" to varAtext, so it will look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID varA&amp;nbsp; varB&amp;nbsp; varAtext&amp;nbsp; footnote2&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp;12&amp;nbsp; &amp;nbsp; &amp;nbsp; 34&amp;nbsp; &amp;nbsp; &amp;nbsp; 12*&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* means caution in interpreting&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I do that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the original data set, there was another column, "Interpret_with_caution" and some rows had "YES", so I had code&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if Intepret_With_Caution eq "YES" then Footnotes2 = "* means caution in interpreting";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And please, folks, no comments about why do I want to do this, why do I want to use this symbol, why do I use those words about caution, what are the rules for when to interpret with caution, and so on. Please, if you could just give me advise on how to do this, that would be great.&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;</description>
      <pubDate>Mon, 08 Feb 2021 17:33:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/adding-a-quot-quot-star-symbol/m-p/717666#M221967</guid>
      <dc:creator>geneshackman</dc:creator>
      <dc:date>2021-02-08T17:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: adding a "*" (star) symbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/adding-a-quot-quot-star-symbol/m-p/717668#M221968</link>
      <description>Forgot to say, column varA is numeric, and varAtext is, obviously, string, or text.</description>
      <pubDate>Mon, 08 Feb 2021 17:34:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/adding-a-quot-quot-star-symbol/m-p/717668#M221968</guid>
      <dc:creator>geneshackman</dc:creator>
      <dc:date>2021-02-08T17:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: adding a "*" (star) symbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/adding-a-quot-quot-star-symbol/m-p/717670#M221969</link>
      <description>&lt;P&gt;The way you have worded this all you need to do is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  varAtext = cats(varAtext,'*');
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But I suspect there is something more complex you want to do but have not explained.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So perhaps VARATEXT is not defined long enough to handle the extra character?&lt;/P&gt;
&lt;P&gt;Or perhaps there is some condition you need to test before adding the asterisk?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or perhaps you want to create VARATEXT from VARA?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 17:42:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/adding-a-quot-quot-star-symbol/m-p/717670#M221969</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-02-08T17:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: adding a "*" (star) symbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/adding-a-quot-quot-star-symbol/m-p/717694#M221979</link>
      <description>Tom. I think your method will work. I'll try it out and let you know. I was asking because I just wasn't sure about the "*" symbol because I wasn't sure whether SAS thought * meant "everything", the way excel does.</description>
      <pubDate>Mon, 08 Feb 2021 18:35:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/adding-a-quot-quot-star-symbol/m-p/717694#M221979</guid>
      <dc:creator>geneshackman</dc:creator>
      <dc:date>2021-02-08T18:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: adding a "*" (star) symbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/adding-a-quot-quot-star-symbol/m-p/717696#M221980</link>
      <description>Tom, I just tried your method. It works. Thank you very much!</description>
      <pubDate>Mon, 08 Feb 2021 18:40:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/adding-a-quot-quot-star-symbol/m-p/717696#M221980</guid>
      <dc:creator>geneshackman</dc:creator>
      <dc:date>2021-02-08T18:40:10Z</dc:date>
    </item>
  </channel>
</rss>

