<?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: Assign the text to a variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Assign-the-text-to-a-variable/m-p/260112#M50438</link>
    <description>&lt;P&gt;If your data is going to have more than one record you do want to make sure that you declare a length long enough to hold the longest value X can take. If this is the first time you use X it has basically aquired the length of that statment. If you attempt reuse X later to hold another string that is longer it will be truncated.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2016 14:27:46 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-03-30T14:27:46Z</dc:date>
    <item>
      <title>Assign the text to a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assign-the-text-to-a-variable/m-p/260095#M50421</link>
      <description>&lt;P&gt;I need to assign the below text to a variable X in sas data step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;lt;br&amp;gt;Learn more at &amp;lt;a href= &lt;A href="https://www.test.com/preferred-rewards" target="_blank"&gt;https://www.test.com/preferred-rewards&lt;/A&gt; target=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"_blank"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;style=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"text-decoration: underline"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;gt; &lt;A href="http://www.test.com/preferred-rewards" target="_blank"&gt;www.test.com/preferred-rewards&lt;/A&gt; &amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;data test;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;x=&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;lt;br&amp;gt;Learn more at &amp;lt;a href= &lt;A href="https://www.bankofamerica.com/preferred-rewards" target="_blank"&gt;https://www.bankofamerica.com/preferred-rewards&lt;/A&gt; target=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"_blank"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;style=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"text-decoration: underline"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;gt; &lt;A href="http://www.bankofamerica.com/preferred-rewards" target="_blank"&gt;www.bankofamerica.com/preferred-rewards&lt;/A&gt; &amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;As the above text has several escape quotes etc., I decided that I need help. Any help is appreciated.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 14:07:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assign-the-text-to-a-variable/m-p/260095#M50421</guid>
      <dc:creator>Yen</dc:creator>
      <dc:date>2016-03-30T14:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Assign the text to a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assign-the-text-to-a-variable/m-p/260098#M50424</link>
      <description>&lt;P&gt;Just put single quotes around the text, escapes do not matter in this instance:&lt;/P&gt;
&lt;PRE&gt;data test;
x=
'&amp;lt;br&amp;gt;Learn more at &amp;lt;a href= https://www.bankofamerica.com/preferred-rewards target="_blank"style="text-decoration: underline"&amp;gt; www.bankofamerica.com/preferred-rewards &amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;';
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Mar 2016 14:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assign-the-text-to-a-variable/m-p/260098#M50424</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-30T14:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Assign the text to a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assign-the-text-to-a-variable/m-p/260112#M50438</link>
      <description>&lt;P&gt;If your data is going to have more than one record you do want to make sure that you declare a length long enough to hold the longest value X can take. If this is the first time you use X it has basically aquired the length of that statment. If you attempt reuse X later to hold another string that is longer it will be truncated.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 14:27:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assign-the-text-to-a-variable/m-p/260112#M50438</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-30T14:27:46Z</dc:date>
    </item>
  </channel>
</rss>

