<?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: SGPLOT XAXISTABLE - How to split text values? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511657#M2219</link>
    <description>&lt;P&gt;You could make graph wider by&lt;/P&gt;
&lt;P&gt;ods graphics /width=2000px ..............;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or change FONTSIZE be smaller ?&lt;/P&gt;</description>
    <pubDate>Fri, 09 Nov 2018 13:01:39 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2018-11-09T13:01:39Z</dc:date>
    <item>
      <title>SGPLOT XAXISTABLE - How to split text values?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511648#M2217</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used XAXISTABLE in PROC SGPLOT to show text values. For variable "Charge" the values overlap.&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="xaxistable.jpg" style="width: 374px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24790i337B3941306D4740/image-size/large?v=v2&amp;amp;px=999" role="button" title="xaxistable.jpg" alt="xaxistable.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to split the values automatically if the space is to small? I couldn't find the solution with VALUEATTRS or FITPOLICY=split.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;xaxistable Charge Beschichtung Konjugat / location=inside;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Antje&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 12:22:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511648#M2217</guid>
      <dc:creator>AntjeWestphal</dc:creator>
      <dc:date>2018-11-09T12:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT XAXISTABLE - How to split text values?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511651#M2218</link>
      <description>&lt;P&gt;Welcome to the SAS community &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you show us your entire code? What version of SAS do you use?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 12:39:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511651#M2218</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-11-09T12:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT XAXISTABLE - How to split text values?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511657#M2219</link>
      <description>&lt;P&gt;You could make graph wider by&lt;/P&gt;
&lt;P&gt;ods graphics /width=2000px ..............;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or change FONTSIZE be smaller ?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 13:01:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511657#M2219</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-11-09T13:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT XAXISTABLE - How to split text values?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511660#M2221</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS-Version: 9.4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on / width=25cm height=15cm;
options nodate nonumber orientation=landscape topmargin="2.5cm" center;
ods html close;
ods pdf file='Z:\Antje\tempSAS\PF4 QK_07.2018.pdf';
ods layout start; ods region x=0cm y=0cm;
PROC SGPLOT DATA = PF4_2;
styleattrs datacontrastcolors=(blue red green magenta yellow black) WALLCOLOR=LTGRAY
             datasymbols=(x);
   SERIES X = Datum2 Y = MW_IgG_posKontr		/ markers lineattrs=(pattern=solid); 
   SERIES X = Datum2 Y = MW_IgG_negKontr		/ markers lineattrs=(pattern=solid);
   SERIES X = Datum2 Y = MW_IgG_posKontr12verd	/ markers lineattrs=(pattern=solid);
   SERIES X = Datum2 Y = MW_IgG_posKontr14verd	/ markers lineattrs=(pattern=solid);
   SERIES X = Datum2 Y = MW_IgG_posKontr18verd	/ markers lineattrs=(pattern=solid);
   xaxistable Charge Beschichtung2 Konjugat / location=inside;
   keylegend/position=bottom valueattrs=(family=arial) down=10;
   TITLE height=12pt font='arial' 'PF4-Kontrollen IgG Juli 2018';
xaxis label='Juli' labelattrs=(family=arial size=12pt)
valueattrs=(family=arial size=12pt);
yaxis grid gridattrs=(color=black) values=(0 to 3 by 0.5) label='Extinktion' labelattrs=(family=arial size=12pt) valueattrs=(family=arial size=12pt );
where Monat='07/2018'; run;
ods layout end;
ods pdf close;
ods html;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Nov 2018 13:16:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511660#M2221</guid>
      <dc:creator>AntjeWestphal</dc:creator>
      <dc:date>2018-11-09T13:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT XAXISTABLE - How to split text values?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511662#M2222</link>
      <description>&lt;P&gt;The graph is already as wide as possible and the font size is really small. &lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://communities.sas.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 13:18:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511662#M2222</guid>
      <dc:creator>AntjeWestphal</dc:creator>
      <dc:date>2018-11-09T13:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT XAXISTABLE - How to split text values?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511675#M2226</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Unbelievable '0D0A'x could change line .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
set sashelp.class;
new_name=catx(' ',name,'0D0A'x,'xxxx');
run;
ods escapechar='~';
proc sgplot data=have(where=(sex='F'));
SERIES X = weight Y = height/ markers lineattrs=(pattern=solid); 
xaxistable new_name / labelattrs=(size=40) location=outside valueattrs=(size=10) ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="x.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24793i75257982FF8E224E/image-size/large?v=v2&amp;amp;px=999" role="button" title="x.png" alt="x.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 13:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511675#M2226</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-11-09T13:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT XAXISTABLE - How to split text values?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511677#M2227</link>
      <description>&lt;P&gt;Another option: Use modified &lt;FONT face="courier new,courier"&gt;Charge&lt;/FONT&gt; values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Charge='WKF'||'0D0A'x||'2015';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Charge.png" style="width: 349px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24794i63DC15EA123A6A72/image-size/large?v=v2&amp;amp;px=999" role="button" title="Charge.png" alt="Charge.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 13:41:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511677#M2227</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-11-09T13:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT XAXISTABLE - How to split text values?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511679#M2228</link>
      <description>&lt;P&gt;If they are of few values then check&lt;STRONG&gt; class=&lt;/STRONG&gt; for xaxistable&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24795i16D057326AEB8E25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / reset=all;
ods graphics / width=4.5in;

proc sgplot data=sashelp.class (where=(age &amp;lt; 13));
scatter x=name y=height;
xaxistable age / class=age title="Student Age" location=inside 
      valueattrs=(color=red) 
      labelattrs=(color=red)
      titleattrs=(color=red) ;
xaxistable weight height / valueattrs=(color=blue);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Nov 2018 13:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511679#M2228</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-11-09T13:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT XAXISTABLE - How to split text values?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511687#M2229</link>
      <description>&lt;P&gt;The values of Charge (= lot number) change over time:&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="DB.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24797iF770F92EEC0C88B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="DB.jpg" alt="DB.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 14:00:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511687#M2229</guid>
      <dc:creator>AntjeWestphal</dc:creator>
      <dc:date>2018-11-09T14:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT XAXISTABLE - How to split text values?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511689#M2230</link>
      <description>&lt;P&gt;Thanks for that idea, but it doesn't work on my graph.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 14:06:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511689#M2230</guid>
      <dc:creator>AntjeWestphal</dc:creator>
      <dc:date>2018-11-09T14:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT XAXISTABLE - How to split text values?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511691#M2231</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/40220"&gt;@AntjeWestphal&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The values of Charge (= lot number) change over time:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;As long as there are only a few different patterns (e.g. WKF&lt;EM&gt;yyyy&lt;/EM&gt; and &lt;EM&gt;nnn&lt;/EM&gt;/&lt;EM&gt;nnx&lt;/EM&gt;&amp;nbsp;and perhaps a few more), it should be possible to insert the line break ('0D0A'x) programmatically at a suitable position. In any case one could insert it after a fixed number of characters or, e.g., after &lt;FONT face="courier new,courier"&gt;floor(length(charge)/2)&lt;/FONT&gt; characters, but I would like to avoid breaks&amp;nbsp;such as WKF2-016.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 15:45:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511691#M2231</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-11-09T15:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT XAXISTABLE - How to split text values?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511733#M2239</link>
      <description>Show your code and sample data. XAXIS has two options that control this - FITPOLICY and SPLITCHAR which may also be in XAXISTABLE but it depends on your SAS version - such as 9.4 TS1M5.</description>
      <pubDate>Fri, 09 Nov 2018 16:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/511733#M2239</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-09T16:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT XAXISTABLE - How to split text values?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/512110#M2298</link>
      <description>&lt;P&gt;SAS version: SAS 9.4 TS Level 1M3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on / width=25cm height=15cm;
options nodate nonumber orientation=landscape topmargin="2.5cm" center;
ods html close;
ods pdf file='Z:\Antje\tempSAS\PF4 QK_07.2018.pdf';
ods layout start; ods region x=0cm y=0cm;
PROC SGPLOT DATA = PF4_2;
styleattrs datacontrastcolors=(blue red green magenta yellow black) WALLCOLOR=LTGRAY
             datasymbols=(x);
   SERIES X = Datum2 Y = MW_IgG_posKontr		/ markers lineattrs=(pattern=solid); 
   SERIES X = Datum2 Y = MW_IgG_negKontr		/ markers lineattrs=(pattern=solid);
   SERIES X = Datum2 Y = MW_IgG_posKontr12verd	/ markers lineattrs=(pattern=solid);
   SERIES X = Datum2 Y = MW_IgG_posKontr14verd	/ markers lineattrs=(pattern=solid);
   SERIES X = Datum2 Y = MW_IgG_posKontr18verd	/ markers lineattrs=(pattern=solid);
   xaxistable Charge Beschichtung Konjugat / location=inside;
   keylegend/position=bottom valueattrs=(family=arial) down=10;
   TITLE height=12pt font='arial' 'PF4-Kontrollen IgG Juli 2018';
xaxis label='Juli' labelattrs=(family=arial size=12pt)
valueattrs=(family=arial size=12pt);
yaxis grid gridattrs=(color=black) values=(0 to 3 by 0.5) label='Extinktion' labelattrs=(family=arial size=12pt) valueattrs=(family=arial size=12pt );
where Monat='07/2018'; run;
ods layout end;
ods pdf close;
ods html;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DB.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24816iF723811F2D17DA57/image-size/large?v=v2&amp;amp;px=999" role="button" title="DB.jpg" alt="DB.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 08:21:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/512110#M2298</guid>
      <dc:creator>AntjeWestphal</dc:creator>
      <dc:date>2018-11-12T08:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT XAXISTABLE - How to split text values?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/512121#M2301</link>
      <description>&lt;P&gt;To insert the line break after a fixed number of characters sounds good because it's important to see &lt;STRONG&gt;if&lt;/STRONG&gt; there is a change in the curves after changing the lot. But can you give me a hint where to insert the &lt;FONT face="courier new,courier"&gt;floor(length(charge)/2) &lt;/FONT&gt;please? &lt;img id="smileyembarrassed" class="emoticon emoticon-smileyembarrassed" src="https://communities.sas.com/i/smilies/16x16_smiley-embarrassed.png" alt="Smiley Embarassed" title="Smiley Embarassed" /&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; In &lt;FONT face="courier new,courier"&gt;data PF4_2; set PF4_2; format Charge2 $21.; Charge2=floor(length(Charge)/2); run;&lt;/FONT&gt; the results are numbers.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 09:08:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/512121#M2301</guid>
      <dc:creator>AntjeWestphal</dc:creator>
      <dc:date>2018-11-12T09:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT XAXISTABLE - How to split text values?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/512132#M2303</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/40220"&gt;@AntjeWestphal&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;To insert the line break after a fixed number of characters sounds good because it's important to see &lt;STRONG&gt;if&lt;/STRONG&gt; there is a change in the curves after changing the lot. But can you give me a hint where to insert the &lt;FONT face="courier new,courier"&gt;floor(length(charge)/2) &lt;/FONT&gt;please? &lt;img id="smileyembarrassed" class="emoticon emoticon-smileyembarrassed" src="https://communities.sas.com/i/smilies/16x16_smiley-embarrassed.png" alt="Smiley Embarassed" title="Smiley Embarassed" /&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; In &lt;FONT face="courier new,courier"&gt;data PF4_2; set PF4_2; format Charge2 $21.; Charge2=floor(length(Charge)/2); run;&lt;/FONT&gt; the results are numbers.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;With&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;floor(length(Charge)/2)&lt;/FONT&gt;&amp;nbsp;the line break would not be inserted after a &lt;EM&gt;fixed&lt;/EM&gt; number of characters, but in the &lt;EM&gt;middle&lt;/EM&gt; of the string, more precisely: after 3 characters for strings of lengths 6 or 7, after 4 for lengths 8 and 9, etc. Do you have lot numbers of length 21, as your FORMAT statement suggests? In this case &lt;EM&gt;one&lt;/EM&gt; split might not be enough.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Example data */

data have;
input Charge $21.;
cards;
WKF2016
017/17I
sehr_lange_Chargennr.
;

/* Split CHARGE values in the middle */

data want(drop=s);
set have;
length Charge2 $23; /* (max. length of CHARGE)+2 */
s=floor(length(charge)/2);
charge2=substr(charge,1,s)||'0D0A'x||substr(charge,s+1);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;(Note that the line breaks do not occur in PROC PRINT output.)&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, 12 Nov 2018 09:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/512132#M2303</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-11-12T09:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT XAXISTABLE - How to split text values?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/512477#M2349</link>
      <description>&lt;P&gt;Thank you Reinhard, that works! &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://communities.sas.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;
&lt;P&gt;I hoped to get an option within the SGPLOT but that's really fine!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 09:20:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SGPLOT-XAXISTABLE-How-to-split-text-values/m-p/512477#M2349</guid>
      <dc:creator>AntjeWestphal</dc:creator>
      <dc:date>2018-11-13T09:20:39Z</dc:date>
    </item>
  </channel>
</rss>

