<?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: Is it possible to create / split a label in two lines in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-create-split-a-label-in-two-lines/m-p/877713#M43045</link>
    <description>Depends, where do you want to see the split? Within a SAS data set - not really. Within an output/printed output like RTF/PDF/Excel doc, then yes, you can split things. Can you provide more details about what you're trying to accomplish?</description>
    <pubDate>Fri, 26 May 2023 15:22:51 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2023-05-26T15:22:51Z</dc:date>
    <item>
      <title>Is it possible to create / split a label in two lines</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-create-split-a-label-in-two-lines/m-p/877709#M43044</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using the attrib, label, length, format and informat statement to create a data model&lt;/P&gt;
&lt;P&gt;Is there a way to get the label in two lines&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ex: Written Premium - Previous Year&lt;/P&gt;
&lt;P&gt;for Written Premium&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Previous Year&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the basic code&lt;/P&gt;
&lt;P&gt;The split did not work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname temp %sysfunc(quote(%sysfunc(pathname(work))));

data temp.model ;
   attrib GENRE 	label="Genre" length=8 format=8. informat=8.
    	  TYPE3 	label="Type3" length=8 format=8. informat=8.
          WP 		label="Written Premium" length=8 format=8. informat=8.
		  SEMOSPC 	label="Written Premium ||'0D'x|| Previous Year" length=8 format=8. informat=8.
;
run&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 15:14:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-create-split-a-label-in-two-lines/m-p/877709#M43044</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2023-05-26T15:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create / split a label in two lines</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-create-split-a-label-in-two-lines/m-p/877713#M43045</link>
      <description>Depends, where do you want to see the split? Within a SAS data set - not really. Within an output/printed output like RTF/PDF/Excel doc, then yes, you can split things. Can you provide more details about what you're trying to accomplish?</description>
      <pubDate>Fri, 26 May 2023 15:22:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-create-split-a-label-in-two-lines/m-p/877713#M43045</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-05-26T15:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create / split a label in two lines</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-create-split-a-label-in-two-lines/m-p/877716#M43046</link>
      <description>I was looking for a solution with sas dataset</description>
      <pubDate>Fri, 26 May 2023 15:27:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-create-split-a-label-in-two-lines/m-p/877716#M43046</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2023-05-26T15:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create / split a label in two lines</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-create-split-a-label-in-two-lines/m-p/877730#M43047</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I was looking for a solution with sas dataset&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since there is no concept of "lines" in the label of a variable you can just use whatever character you want to indicate the location of the logic split into "lines". You might use | or / or * for example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might want to pick one that works with other procedures.&amp;nbsp; Such as the SPLIT= option of PROC PRINT.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 16:09:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-create-split-a-label-in-two-lines/m-p/877730#M43047</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-05-26T16:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create / split a label in two lines</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-create-split-a-label-in-two-lines/m-p/877731#M43048</link>
      <description>Out of curiousity, why? What would be the purpose for the label in the data set to have a split? You want to see it in viewer?</description>
      <pubDate>Fri, 26 May 2023 16:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-create-split-a-label-in-two-lines/m-p/877731#M43048</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-05-26T16:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create / split a label in two lines</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-create-split-a-label-in-two-lines/m-p/878077#M43054</link>
      <description>&lt;P&gt;It is because, sometime the dataset label&amp;nbsp; is to long.&amp;nbsp; Ex: Written Premium - Previous Year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would prefer to get:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Witten Premium&lt;/P&gt;
&lt;P&gt;Previous Year&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 18:02:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-create-split-a-label-in-two-lines/m-p/878077#M43054</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2023-05-29T18:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create / split a label in two lines</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-create-split-a-label-in-two-lines/m-p/878080#M43055</link>
      <description>Hi: But where would  you be able to see that it was too long? In a report? In the data viewer? In the results of a statistical procedure? In the output of a graph procedure? You don't "see" inside the SAS dataset when it is stored, and not being actively used.&lt;BR /&gt;   Inside the SAS dataset, when the labels are stored in the descriptor portion of the data, there is no concept of "lines" or line feeds or carriage returns. The label is stored as a piece of "descriptor" information about the column. You only "see" that label when the label is used to produce output or when the label is used in a table viewer.&lt;BR /&gt;Cynthia</description>
      <pubDate>Mon, 29 May 2023 18:14:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-it-possible-to-create-split-a-label-in-two-lines/m-p/878080#M43055</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-05-29T18:14:55Z</dc:date>
    </item>
  </channel>
</rss>

