<?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: Using text wrapping and multiple lines without carriage return - ODS EXPORT and Proc Report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-text-wrapping-and-multiple-lines-without-carriage-return/m-p/773789#M25359</link>
    <description>&lt;P&gt;The code I've posted works for me. Below how the Excel looks like in my environment.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1634077757395.png" style="width: 608px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64629i15F3A59B8603F12D/image-dimensions/608x136?v=v2" width="608" height="136" role="button" title="Patrick_0-1634077757395.png" alt="Patrick_0-1634077757395.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Oct 2021 22:30:24 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2021-10-12T22:30:24Z</dc:date>
    <item>
      <title>Using text wrapping and multiple lines without carriage return - ODS EXPORT and Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-text-wrapping-and-multiple-lines-without-carriage-return/m-p/773488#M25349</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I've outputted an Excel file using SAS. This is the first image below. I will like the highlighted text in yellow to still wrap and be on multiple lines (for better viewing), but not add an carriage return. The yellow highlighted text in the second image shows what I would like, such as the text is wrapped and on multiple lines, and when you look in the top menu, you can see that there is no carriage return in the text. But, the second image is creating in Excel. Do you have any ideas how I can do this in SAS please? The proc report code that I have been using is below too, and the dataset that is being used has been attached.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Excel Example.PNG" style="width: 813px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64590i1DF8C5AB30F1B2FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Excel Example.PNG" alt="Excel Example.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="How I want it Excel Example.PNG" style="width: 826px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64589i3A34F6EEF87AB782/image-size/large?v=v2&amp;amp;px=999" role="button" title="How I want it Excel Example.PNG" alt="How I want it Excel Example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="&amp;amp;export" ods excel options(flow="tables" sheet_name="QSORRES Mapping" absolute_column_width = "22, 23, 16, 60, 60, 13, 60, 65");
ods escapechar='~';
proc report data=input_data nowd spanrows wrap style(header)={textalign=left /*fontsize=10pt fontweight=bold*/ /*fontfamily="Albany AMT"*/} style(column)={textalign=left /*fontsize=10pt  *//*fontfamily="Albany AMT"*/};
     column ('~S={foreground=black}Raw'  FORMNAME_TEST FORMNAME_PRODUCTION ITEMNAME VALUE)  
            ('~S={foreground=black}SDTM' QSORRES QSSTRESN QSSTRESC Comments_Special_characters_);
     define FORMNAME_TEST / "FormName Test" display style(column)={vjust=c} style(header)={background=#E2EFDA foreground=black};
     define FORMNAME_PRODUCTION / "FormName Production" style(column)={vjust=c} style(header)={background=#E2EFDA foreground=black};
     define ITEMNAME / "ItemName" style(column)={vjust=c} style(header)={background=#E2EFDA foreground=black};
     define VALUE / "Value" style(column)={vjust=c tagattr='wraptext:yes' width=100%} style(header)={background=#E2EFDA foreground=black};

     define QSORRES / style(column)={vjust=c tagattr='wraptext:yes' width=100%} style(header)={background=D9E1F2} style(header)={background=#D9E1F2 foreground=black};
     define QSSTRESN / format=8. style(column)={vjust=c} style(header)={background=#D9E1F2 foreground=black};
     define QSSTRESC / style(column)={vjust=c tagattr='wraptext:yes' width=100%} style(header)={background=#D9E1F2 foreground=black};
     define Comments_Special_characters_/ "Comments (Special characters)" style(column)={vjust=c} style(header)={background=#D9E1F2 foreground=black};     
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 21:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-text-wrapping-and-multiple-lines-without-carriage-return/m-p/773488#M25349</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2021-10-11T21:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using text wrapping and multiple lines without carriage return - ODS EXPORT and Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-text-wrapping-and-multiple-lines-without-carriage-return/m-p/773499#M25351</link>
      <description>&lt;P&gt;Actually, this is the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="&amp;amp;export"  options(flow="tables" sheet_name="QSORRES Mapping" absolute_column_width = "22, 23, 16, 60, 60, 13, 60, 65");
ods escapechar='~';
proc report data=input_data nowd spanrows wrap style(header)={textalign=left /*fontsize=10pt fontweight=bold*/ /*fontfamily="Albany AMT"*/} style(column)={textalign=left /*fontsize=10pt  *//*fontfamily="Albany AMT"*/};
     column ('~S={foreground=black}Raw'  FORMNAME_TEST FORMNAME_PRODUCTION ITEMNAME VALUE)  
            ('~S={foreground=black}SDTM' QSORRES QSSTRESN QSSTRESC Comments_Special_characters_);
     define FORMNAME_TEST / "FormName Test" display style(column)={vjust=c} style(header)={background=#E2EFDA foreground=black};
     define FORMNAME_PRODUCTION / "FormName Production" style(column)={vjust=c} style(header)={background=#E2EFDA foreground=black};
     define ITEMNAME / "ItemName" style(column)={vjust=c} style(header)={background=#E2EFDA foreground=black};
     define VALUE / "Value" style(column)={vjust=c tagattr='wraptext:yes' width=100%} style(header)={background=#E2EFDA foreground=black};

     define QSORRES / style(column)={vjust=c tagattr='wraptext:yes' width=100%} style(header)={background=D9E1F2} style(header)={background=#D9E1F2 foreground=black};
     define QSSTRESN / format=8. style(column)={vjust=c} style(header)={background=#D9E1F2 foreground=black};
     define QSSTRESC / style(column)={vjust=c tagattr='wraptext:yes' width=100%} style(header)={background=#D9E1F2 foreground=black};
     define Comments_Special_characters_/ "Comments (Special characters)" style(column)={vjust=c} style(header)={background=#D9E1F2 foreground=black};     
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Oct 2021 21:36:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-text-wrapping-and-multiple-lines-without-carriage-return/m-p/773499#M25351</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2021-10-11T21:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using text wrapping and multiple lines without carriage return - ODS EXPORT and Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-text-wrapping-and-multiple-lines-without-carriage-return/m-p/773545#M25352</link>
      <description>&lt;P&gt;Below seems to get the wrapping right.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel 
  file="&amp;amp;export"  
  options(flow="tables" sheet_name="QSORRES Mapping");
ods escapechar='~';
proc report data=input_data nowd spanrows wrap style(header)={textalign=left /*fontsize=10pt fontweight=bold*/ /*fontfamily="Albany AMT"*/} style(column)={textalign=left /*fontsize=10pt  *//*fontfamily="Albany AMT"*/};
     column ('~S={foreground=black}Raw'  FORMNAME_TEST FORMNAME_PRODUCTION ITEMNAME VALUE)  
            ('~S={foreground=black}SDTM' QSORRES QSSTRESN QSSTRESC Comments_Special_characters_);
     define FORMNAME_TEST / "FormName Test" display style(column)={vjust=c width=22em} style(header)={background=#E2EFDA foreground=black};
     define FORMNAME_PRODUCTION / "FormName Production" style(column)={vjust=c width=23em} style(header)={background=#E2EFDA foreground=black};
     define ITEMNAME / "ItemName" style(column)={vjust=c width=10em} style(header)={background=#E2EFDA foreground=black};
     define VALUE / "Value" style(column)={vjust=c width=16em} style(header)={background=#E2EFDA foreground=black};

     define QSORRES / style(column)={vjust=c tagattr='wraptext:yes' width=60em} style(header)={background=D9E1F2} style(header)={background=#D9E1F2 foreground=black};
     define QSSTRESN / format=8. style(column)={vjust=c width=13em} style(header)={background=#D9E1F2 foreground=black};
     define QSSTRESC / style(column)={vjust=c width=10em} style(header)={background=#D9E1F2 foreground=black};
     define Comments_Special_characters_/ "Comments (Special characters)" style(column)={vjust=c width=65em} style(header)={background=#D9E1F2 foreground=black};     
run;

ods excel close;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Oct 2021 06:33:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-text-wrapping-and-multiple-lines-without-carriage-return/m-p/773545#M25352</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-10-12T06:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using text wrapping and multiple lines without carriage return - ODS EXPORT and Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-text-wrapping-and-multiple-lines-without-carriage-return/m-p/773659#M25355</link>
      <description>&lt;P&gt;Thank you for your response. Unfortunately, I still get the issue with the values being squashed and not immediately appearing in multiple lines within Excel. Please see the example below. Do you know how to overcome this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Text Wrap Issues.PNG" style="width: 320px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64612i657527AF10080056/image-size/large?v=v2&amp;amp;px=999" role="button" title="Text Wrap Issues.PNG" alt="Text Wrap Issues.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kriss&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 14:00:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-text-wrapping-and-multiple-lines-without-carriage-return/m-p/773659#M25355</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2021-10-12T14:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using text wrapping and multiple lines without carriage return - ODS EXPORT and Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-text-wrapping-and-multiple-lines-without-carriage-return/m-p/773789#M25359</link>
      <description>&lt;P&gt;The code I've posted works for me. Below how the Excel looks like in my environment.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1634077757395.png" style="width: 608px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64629i15F3A59B8603F12D/image-dimensions/608x136?v=v2" width="608" height="136" role="button" title="Patrick_0-1634077757395.png" alt="Patrick_0-1634077757395.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 22:30:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-text-wrapping-and-multiple-lines-without-carriage-return/m-p/773789#M25359</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-10-12T22:30:24Z</dc:date>
    </item>
  </channel>
</rss>

