<?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: How to store a text in a variable in many lines in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-store-a-text-in-a-variable-in-many-lines/m-p/846833#M334774</link>
    <description>&lt;P&gt;Just out of curiosity, why do you want this in a SAS data set variable?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 14:59:24 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-11-29T14:59:24Z</dc:date>
    <item>
      <title>How to store a text in a variable in many lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-store-a-text-in-a-variable-in-many-lines/m-p/846816#M334761</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am wondering if you could help me please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to store a short text into a variable in different lines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
 text_in_many_lines = 
  "Hello, 
  This is a text in many lines.&lt;BR /&gt;  Thanks.";&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If I do so, I am able to store it but not in many lines as shown above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to do it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:30:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-store-a-text-in-a-variable-in-many-lines/m-p/846816#M334761</guid>
      <dc:creator>Zatere</dc:creator>
      <dc:date>2022-11-29T14:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to store a text in a variable in many lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-store-a-text-in-a-variable-in-many-lines/m-p/846824#M334766</link>
      <description>&lt;P&gt;Do you want this to appear in separate lines in a report? If so, explain further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There really is no concept of "many lines" in a SAS data set, you could insert a carriage break character into the string, but that's really useless unless you want to put this into a report.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:44:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-store-a-text-in-a-variable-in-many-lines/m-p/846824#M334766</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-29T14:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to store a text in a variable in many lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-store-a-text-in-a-variable-in-many-lines/m-p/846831#M334773</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Yes actually this is what I was looking for. &lt;BR /&gt;&lt;BR /&gt;I did the below:&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;text_in_many_lines = &lt;BR /&gt;cats(&lt;BR /&gt;'Hello,',&lt;BR /&gt;'0A'x,'0A'x,&lt;BR /&gt;'This is a text in many lines.',&lt;BR /&gt;'0A'x,'0A'x,&lt;BR /&gt;'Thanks.'&lt;BR /&gt;)&lt;BR /&gt;;&lt;BR /&gt;run;</description>
      <pubDate>Tue, 29 Nov 2022 14:57:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-store-a-text-in-a-variable-in-many-lines/m-p/846831#M334773</guid>
      <dc:creator>Zatere</dc:creator>
      <dc:date>2022-11-29T14:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to store a text in a variable in many lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-store-a-text-in-a-variable-in-many-lines/m-p/846833#M334774</link>
      <description>&lt;P&gt;Just out of curiosity, why do you want this in a SAS data set variable?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:59:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-store-a-text-in-a-variable-in-many-lines/m-p/846833#M334774</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-29T14:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to store a text in a variable in many lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-store-a-text-in-a-variable-in-many-lines/m-p/846838#M334779</link>
      <description>I use it as body of an email.</description>
      <pubDate>Tue, 29 Nov 2022 15:18:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-store-a-text-in-a-variable-in-many-lines/m-p/846838#M334779</guid>
      <dc:creator>Zatere</dc:creator>
      <dc:date>2022-11-29T15:18:53Z</dc:date>
    </item>
  </channel>
</rss>

