<?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 arrange the observation  in a  variable to display exactly in excel sheel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-arrange-the-observation-in-a-variable-to-display-exactly/m-p/689354#M209549</link>
    <description>&lt;P&gt;worked it for me. Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 06 Oct 2020 21:56:39 GMT</pubDate>
    <dc:creator>SASuserlot</dc:creator>
    <dc:date>2020-10-06T21:56:39Z</dc:date>
    <item>
      <title>how to arrange the observation  in a  variable to display exactly in excel sheel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-arrange-the-observation-in-a-variable-to-display-exactly/m-p/689075#M209450</link>
      <description>&lt;P&gt;I need to export the sas data set into Excel, I have the observations for variables with comma separated, I want them each&amp;nbsp; word/ Sentence after comma in a separate line. This variables were created by concatenating other variables&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Variable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000"&gt;&lt;EM&gt;Control, double blind, orthopedic, death&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;&lt;EM&gt;I want to display this as&lt;/EM&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;&lt;EM&gt;Variable&lt;/EM&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000"&gt;&lt;EM&gt;control,&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000"&gt;&lt;EM&gt;double blind,&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000"&gt;&lt;I&gt;orthopedic&lt;/I&gt;&lt;EM&gt;,&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000"&gt;&lt;EM&gt;death&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;So that it will display in excel as it is. or any other suggestions also helps.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 04:02:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-arrange-the-observation-in-a-variable-to-display-exactly/m-p/689075#M209450</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2020-10-06T04:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to arrange the observation  in a  variable to display exactly in excel sheel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-arrange-the-observation-in-a-variable-to-display-exactly/m-p/689081#M209452</link>
      <description>&lt;P&gt;Can you type some sample data, just a few records, into Excel and post a screen print?&amp;nbsp; I'm not quite sure what it is that you're trying to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can post some sample data in usable form (Datalines in a SAS program), that would be helpful.&amp;nbsp; I'm sure we can get to what you're trying to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 05:13:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-arrange-the-observation-in-a-variable-to-display-exactly/m-p/689081#M209452</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2020-10-06T05:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to arrange the observation  in a  variable to display exactly in excel sheel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-arrange-the-observation-in-a-variable-to-display-exactly/m-p/689094#M209456</link>
      <description>&lt;P&gt;Have you tried ending each line with&amp;nbsp; '0D'x or '0D0A'x&amp;nbsp; ?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 06:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-arrange-the-observation-in-a-variable-to-display-exactly/m-p/689094#M209456</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-10-06T06:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to arrange the observation  in a  variable to display exactly in excel sheel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-arrange-the-observation-in-a-variable-to-display-exactly/m-p/689105#M209459</link>
      <description>&lt;P&gt;Libraries contain datasets.&lt;/P&gt;
&lt;P&gt;Datasets contain observations.&lt;/P&gt;
&lt;P&gt;Observations contain variables.&lt;/P&gt;
&lt;P&gt;Variables contain values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A variable cannot contain observations, but it can contain several &lt;EM&gt;values&lt;/EM&gt;, as in your case separated by commas.&lt;/P&gt;
&lt;P&gt;So you want to display the comma-separated values of a single variable spread over several lines within a cell in Excel?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 07:09:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-arrange-the-observation-in-a-variable-to-display-exactly/m-p/689105#M209459</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-06T07:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to arrange the observation  in a  variable to display exactly in excel sheel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-arrange-the-observation-in-a-variable-to-display-exactly/m-p/689215#M209497</link>
      <description>&lt;P&gt;you suggesting to concatenate with these during the data creation?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 14:02:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-arrange-the-observation-in-a-variable-to-display-exactly/m-p/689215#M209497</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2020-10-06T14:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to arrange the observation  in a  variable to display exactly in excel sheel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-arrange-the-observation-in-a-variable-to-display-exactly/m-p/689217#M209498</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1601992997579.png" style="width: 506px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50220i40C93B981D5763A0/image-dimensions/506x153?v=v2" width="506" height="153" role="button" title="SASuserlot_0-1601992997579.png" alt="SASuserlot_0-1601992997579.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;sorry that I caused you confusion. In the above pic Yellow highlight indicates how the data displayed in Sas Dataset&lt;/P&gt;&lt;P&gt;Green highlight is how I want to display in Excel sheet, I tried with the highlight then wrap text in excel , however they&amp;nbsp; not separating the way I wanted. Any suggestions greatly appreciated. Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 14:06:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-arrange-the-observation-in-a-variable-to-display-exactly/m-p/689217#M209498</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2020-10-06T14:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to arrange the observation  in a  variable to display exactly in excel sheel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-arrange-the-observation-in-a-variable-to-display-exactly/m-p/689264#M209521</link>
      <description>&lt;P&gt;Instead of a comma, you have to add a '2C0A'x separator.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ExcelCellValue = CATX('2C0A'x, 'orthopedic', 'diagnostic', 'Hypertension', 'vision problems leads to blindness', 'safety',  'Treatment');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 16:43:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-arrange-the-observation-in-a-variable-to-display-exactly/m-p/689264#M209521</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2020-10-06T16:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to arrange the observation  in a  variable to display exactly in excel sheel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-arrange-the-observation-in-a-variable-to-display-exactly/m-p/689326#M209536</link>
      <description>Yes indeed. &lt;BR /&gt;</description>
      <pubDate>Tue, 06 Oct 2020 19:41:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-arrange-the-observation-in-a-variable-to-display-exactly/m-p/689326#M209536</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-10-06T19:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to arrange the observation  in a  variable to display exactly in excel sheel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-arrange-the-observation-in-a-variable-to-display-exactly/m-p/689354#M209549</link>
      <description>&lt;P&gt;worked it for me. Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 21:56:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-arrange-the-observation-in-a-variable-to-display-exactly/m-p/689354#M209549</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2020-10-06T21:56:39Z</dc:date>
    </item>
  </channel>
</rss>

