<?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: Displaying the sas dataset when right clicked and viewed in Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Displaying-the-sas-dataset-when-right-clicked-and-viewed-in/m-p/149924#M297883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys can any one please help in the above problem.&amp;nbsp; Please state wether it is possible or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if I have to export to Excel the solution will be helpful (alt + enter ) format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jan 2014 04:14:26 GMT</pubDate>
    <dc:creator>Imroze</dc:creator>
    <dc:date>2014-01-24T04:14:26Z</dc:date>
    <item>
      <title>Displaying the sas dataset when right clicked and viewed in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Displaying-the-sas-dataset-when-right-clicked-and-viewed-in/m-p/149923#M297882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset with variable value containing Message information. When I read the Message from the text document I am appending the values from different observations and the complete text is comming in one line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any option in sas to display the message variable in (as in Excel we use alt + enter) more than one line as in header with split option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is the data should be only in one variable and when right clicked should be able to view in excel in userfriendly format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the example below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input text document::::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; z&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Message: This is a sample message,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where I have to read the information in&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; one single variable in sas data set.&lt;/P&gt;&lt;P&gt;When I read this dataset the variable message comes in one line. say like the below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message Variable&lt;/P&gt;&lt;P&gt;Message: This is a sample message, where I have to read the information in one single variable in sas data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the issue here is to split the dataset value or set the column width or set the height of the variable value for display purpose or when&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;viewed by client in excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used byte(10) and concatenated the observations but does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 06:19:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Displaying-the-sas-dataset-when-right-clicked-and-viewed-in/m-p/149923#M297882</guid>
      <dc:creator>Imroze</dc:creator>
      <dc:date>2014-01-23T06:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying the sas dataset when right clicked and viewed in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Displaying-the-sas-dataset-when-right-clicked-and-viewed-in/m-p/149924#M297883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys can any one please help in the above problem.&amp;nbsp; Please state wether it is possible or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if I have to export to Excel the solution will be helpful (alt + enter ) format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 04:14:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Displaying-the-sas-dataset-when-right-clicked-and-viewed-in/m-p/149924#M297883</guid>
      <dc:creator>Imroze</dc:creator>
      <dc:date>2014-01-24T04:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying the sas dataset when right clicked and viewed in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Displaying-the-sas-dataset-when-right-clicked-and-viewed-in/m-p/149925#M297884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a question about how long data items in a SAS dataset can be displayed in multiple lines.&amp;nbsp; It is not a question of how the data is stored 'under the covers' because it makes no sense in that context, either for SAS or Excel.&lt;/P&gt;&lt;P&gt;I doubt whether you can make the SAS data viewer behave in the way you describe but Proc report (and tabulate) can wrap data within fixed width cells.&amp;nbsp; An example from the SAS documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; value questionf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 1='This is an example of a description that is too long so it wraps down to the next line';&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;data a;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; input question rater $ avg;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;1 manager 3&lt;/P&gt;&lt;P&gt;1 staff 2&lt;/P&gt;&lt;P&gt;1 peer 3&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;ods listing close;&lt;/P&gt;&lt;P&gt;ods escapechar='^';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options nodate nonumber orientation=portrait;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;proc report data=a nowd spanrows;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; column question rater avg;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; define question / order &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format=questionf. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(column)={cellwidth=2.2in};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; define rater / display;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; define avg&amp;nbsp;&amp;nbsp; / display; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(this comes from 9.2 documentation that describes an undesired side effect with ODS PDF:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;A href="http://support.sas.com/kb/45/549.html" title="http://support.sas.com/kb/45/549.html"&gt;45549 - Wrapped text strings in the first column cause unwanted white space in subsequent rows in PROC REPORT and PROC TABULATE output routed to ODS PDF&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Richard&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jan 2014 02:30:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Displaying-the-sas-dataset-when-right-clicked-and-viewed-in/m-p/149925#M297884</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2014-01-25T02:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying the sas dataset when right clicked and viewed in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Displaying-the-sas-dataset-when-right-clicked-and-viewed-in/m-p/149926#M297885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Richard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your comment is helpful in finalizing my decission..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I can clearly specify to my client that dataset cannot be viewed directly in desired format, I can give a desired output if needed (ODS, EXCEL, HTML...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 05:19:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Displaying-the-sas-dataset-when-right-clicked-and-viewed-in/m-p/149926#M297885</guid>
      <dc:creator>Imroze</dc:creator>
      <dc:date>2014-01-27T05:19:16Z</dc:date>
    </item>
  </channel>
</rss>

