<?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: labels in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/labels/m-p/951911#M42787</link>
    <description>Many Tnks I regeived a big help !!! I think I have tu study very mach now !! SaS Community is the best!&lt;BR /&gt;</description>
    <pubDate>Tue, 26 Nov 2024 14:16:41 GMT</pubDate>
    <dc:creator>Tecla1</dc:creator>
    <dc:date>2024-11-26T14:16:41Z</dc:date>
    <item>
      <title>labels</title>
      <link>https://communities.sas.com/t5/New-SAS-User/labels/m-p/951763#M42779</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;
&lt;P&gt;I need to insert a label with a line breack, is possible? I have to replicate an export in Excel with column headers that contain newlines like this:&lt;/P&gt;
&lt;P&gt;"Matr.&lt;BR /&gt;S.I."&lt;/P&gt;
&lt;P&gt;Please can you help me? I tried but in any case in te export results without a line breack....&lt;/P&gt;
&lt;P&gt;many thanks to all.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 09:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/labels/m-p/951763#M42779</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2024-11-25T09:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: labels</title>
      <link>https://communities.sas.com/t5/New-SAS-User/labels/m-p/951767#M42780</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="lia-link-navigation child-thread lia-link-disabled" aria-disabled="true" aria-label="Need to insert line break in Excel using PROC EXPORT"&gt;Need to insert line break in Excel using PROC EXPORT&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Need-to-insert-line-break-in-Excel-using-PROC-EXPORT/td-p/909531" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Need-to-insert-line-break-in-Excel-using-PROC-EXPORT/td-p/909531&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 10:19:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/labels/m-p/951767#M42780</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-11-25T10:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: labels</title>
      <link>https://communities.sas.com/t5/New-SAS-User/labels/m-p/951770#M42781</link>
      <description>&lt;P&gt;Below one option.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.have;
  col1='ABC';
  col2=123;
run;

ods excel file="c:\temp\yourfile.xlsx";

%let lbl=Matr.%sysfunc(inputc(0A,hex.))S.I.;
proc print data=have label;
  label col1="&amp;amp;lbl";
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1732530222398.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102482iC95B801E604C43AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1732530222398.png" alt="Patrick_0-1732530222398.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 10:24:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/labels/m-p/951770#M42781</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-11-25T10:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: labels</title>
      <link>https://communities.sas.com/t5/New-SAS-User/labels/m-p/951773#M42782</link>
      <description>Thanks everyone, I received great help!! I'll try the solutions right away !!! have a nice dat: Tecla</description>
      <pubDate>Mon, 25 Nov 2024 10:37:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/labels/m-p/951773#M42782</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2024-11-25T10:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: labels</title>
      <link>https://communities.sas.com/t5/New-SAS-User/labels/m-p/951894#M42784</link>
      <description>&lt;P&gt;Good morning everyone, I have verified your solution for which I thank you, but I have a problem: if the width of the excel cell is sufficiently wide the text dos not wrap. I need an action equal the excel comand "ALT + ENTER"&amp;nbsp; to insert a line break, is it possible? It's very important for me... otherwise I'll have to reorganize a rather large DB.... Tnks!!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 10:06:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/labels/m-p/951894#M42784</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2024-11-26T10:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: labels</title>
      <link>https://communities.sas.com/t5/New-SAS-User/labels/m-p/951902#M42786</link>
      <description>&lt;P&gt;How are you creating an Excel file? Please show us the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using PROC REPORT or PROC PRINT, there is the SPLIT= option which causes line breaks exactly where you want them to be. To have the text wrapped, there is also the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm#p0258wnlz15ubrn1vqfalp6l4hjz" target="_self"&gt;FLOW= option in ODS EXCEL&lt;/A&gt;&amp;nbsp;and the option in ODS EXCEL &lt;FONT face="courier new,courier"&gt;tagattr='wraptext:yes'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So to modify&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;'s code to use the SPLIT= option&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="c:\temp\yourfile.xlsx";

proc print data=have label split='~';
  label col1="Matr.~S.I";
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Nov 2024 13:54:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/labels/m-p/951902#M42786</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-11-26T13:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: labels</title>
      <link>https://communities.sas.com/t5/New-SAS-User/labels/m-p/951911#M42787</link>
      <description>Many Tnks I regeived a big help !!! I think I have tu study very mach now !! SaS Community is the best!&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Nov 2024 14:16:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/labels/m-p/951911#M42787</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2024-11-26T14:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: labels</title>
      <link>https://communities.sas.com/t5/New-SAS-User/labels/m-p/951915#M42788</link>
      <description>Excuse for mistake ... I need to sleep...&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Nov 2024 14:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/labels/m-p/951915#M42788</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2024-11-26T14:17:45Z</dc:date>
    </item>
  </channel>
</rss>

