<?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 Alignment with hyphen in proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alignment-with-hyphen-in-proc-report/m-p/593311#M23351</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using rtf commands to align values in 'Result' and 'Reference Range' columns - please see below. While using of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;protectspecialchars=off pretext="\qj\tqdec\tx430 "&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;is working perfectly I can't do the same using 'alignment with hyphen:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; protectspecialchars=off pretext="\qj\tlhyph\tx430 " &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What could be the reason and why the last is not working?&lt;/P&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;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32902i2BCED42500A4E7BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What can be a solution of the problem?&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2019 12:06:47 GMT</pubDate>
    <dc:creator>DmytroYermak</dc:creator>
    <dc:date>2019-10-02T12:06:47Z</dc:date>
    <item>
      <title>Alignment with hyphen in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alignment-with-hyphen-in-proc-report/m-p/593311#M23351</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using rtf commands to align values in 'Result' and 'Reference Range' columns - please see below. While using of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;protectspecialchars=off pretext="\qj\tqdec\tx430 "&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;is working perfectly I can't do the same using 'alignment with hyphen:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; protectspecialchars=off pretext="\qj\tlhyph\tx430 " &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What could be the reason and why the last is not working?&lt;/P&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;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32902i2BCED42500A4E7BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What can be a solution of the problem?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 12:06:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alignment-with-hyphen-in-proc-report/m-p/593311#M23351</guid>
      <dc:creator>DmytroYermak</dc:creator>
      <dc:date>2019-10-02T12:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment with hyphen in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alignment-with-hyphen-in-proc-report/m-p/593380#M23352</link>
      <description>Hi: Did you draw the line for Result and Reference Range? Is Reference Range a character string? That's what I would expect. It looks like you are passing the RTF control string via a style override. Are you doing this on the DEFINE statement for the Reference Range? My guess is that you'll have to work with Tech Support on this one.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 02 Oct 2019 14:12:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alignment-with-hyphen-in-proc-report/m-p/593380#M23352</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-10-02T14:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment with hyphen in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alignment-with-hyphen-in-proc-report/m-p/593387#M23353</link>
      <description>&lt;P&gt;Data&lt;/P&gt;
&lt;P&gt;Code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cause? Guessing to a extent here but RTF has a decimal align ability. I suspect there hasn't been a great deal of call to force values to align on a hyphen especially since hyphens play&amp;nbsp; a role in splitting line rules.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the appearance of alignment was worth it too me I would likely have 3 variables, one for the left value, one for the hyphen and one for the right value and then play with cell border appearance options, justification (right for the first, left for the third) and cell padding values to make things appear as desired. Or possibly 2 values with a picture format to either append or prefix a hyphen with the border manipulation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's basically what I do to create ( 1.25, 3.4) type "confidence intervals" in Proc report/tabulate.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 14:32:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alignment-with-hyphen-in-proc-report/m-p/593387#M23353</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-02T14:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment with hyphen in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alignment-with-hyphen-in-proc-report/m-p/593393#M23354</link>
      <description>&lt;P&gt;Thank you, Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here it is the code. Now without 'pretext' for &lt;CODE class=" language-sas"&gt;"Reference|Range". It seemed just changing 'dec' on 'lhyphn' could help.&lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nobyline nodate nonumber orientation=landscape;
ods escapechar="!" ;

proc report data=final_1 nowd nowindows missing headline headskip split="|" formchar(2)='_';
  column var1 var2 var3 var4 var5 var6 var7 var8;

  define var1      / "ID" order order=data style(header)=[just=l] style(column)=[asis=on just=l cellwidth=7.5%];
  define avisitn   / noprint      order order=data;
  define var2      / "Timepoint"  order order=data style(header)=[just=l] style(column)=[asis=on just=l cellwidth=6.5%];
  define var3      / "Date and Time|of Collection" order order=data
                                                   style(header)=[just=l] style(column)=[asis=on just=l cellwidth=12%];
  define var4      / "Test"                        style(header)=[just=l] style(column)=[asis=on just=l cellwidth=33%];
  define var5      / "Result"                      style(header)=[just=c] style(column)=[just=c protectspecialchars=off pretext="\qj\tqdec\tx430 "  cellwidth=10%];
  define var6      / "Reference|Range"             style(header)=[just=c] style(column)=[asis=on just=c cellwidth=10%];
  define var7      / "High/Low"           style(header)=[just=l] style(column)=[asis=off just=l cellwidth=7%];
  define var8      / "Reason Sample|Not Collected" style(header)=[just=l] style(column)=[asis=on just=l cellwidth=13%];

run;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 14:40:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alignment-with-hyphen-in-proc-report/m-p/593393#M23354</guid>
      <dc:creator>DmytroYermak</dc:creator>
      <dc:date>2019-10-02T14:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment with hyphen in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alignment-with-hyphen-in-proc-report/m-p/593399#M23355</link>
      <description>&lt;P&gt;The rtf commands are listed, for example, here:&amp;nbsp;&lt;A href="http://www.biblioscape.com/rtf15_spec.htm" target="_blank"&gt;http://www.biblioscape.com/rtf15_spec.htm&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I am thinking that the alignment with hypen would work if there were not spaces in the values. But anyway would be grateful for any advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 14:46:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alignment-with-hyphen-in-proc-report/m-p/593399#M23355</guid>
      <dc:creator>DmytroYermak</dc:creator>
      <dc:date>2019-10-02T14:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment with hyphen in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alignment-with-hyphen-in-proc-report/m-p/593449#M23356</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Well, tqdec is a TAB related command, as shown in this paper, where the author explicitly talks about TAB related tqdec:&amp;nbsp;&lt;A href="http://www.pharmasug.org/proceedings/2013/IB/PharmaSUG-2013-IB08.pdf" target="_blank"&gt;http://www.pharmasug.org/proceedings/2013/IB/PharmaSUG-2013-IB08.pdf&lt;/A&gt;&amp;nbsp;on page 7. When I look in the RTF spec, I see that both tqdec and the tlhyph controls are TAB related controls:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tqdec_hyphen.png" style="width: 584px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32911i370E0F0CBD3BC27A/image-size/large?v=v2&amp;amp;px=999" role="button" title="tqdec_hyphen.png" alt="tqdec_hyphen.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have tab stops in your RTF file? The thing that makes me wonder about tlhyph is that it says it is for "leader" hyphens, which makes me wonder whether it is really designed for alignment within the string or alignment to a tab stop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can do decimal alignment using style(column)={just=d} without using RTF control words.&amp;nbsp; &amp;nbsp;My tendency would be to center the cell contents and use just=c as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="center_hyphen.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32912iACDBEE42C5BBED57/image-size/large?v=v2&amp;amp;px=999" role="button" title="center_hyphen.png" alt="center_hyphen.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This does depend on the strings being the same width on both sides of the hyphen as shown in the difference between the first row and the other 3 rows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps. If you want to pursue the tlhyph route, you'll need to work with Tech Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 16:05:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alignment-with-hyphen-in-proc-report/m-p/593449#M23356</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-10-02T16:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Alignment with hyphen in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alignment-with-hyphen-in-proc-report/m-p/593617#M23357</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Cynthia,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for&amp;nbsp;style(column)={just=d}&amp;nbsp;and the link provided. I guess you are complitely right - it is a question of 'leader' hyphens. Actually it would be useful to add alignment using any particular symbol in a future SAS release.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 07:12:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alignment-with-hyphen-in-proc-report/m-p/593617#M23357</guid>
      <dc:creator>DmytroYermak</dc:creator>
      <dc:date>2019-10-03T07:12:09Z</dc:date>
    </item>
  </channel>
</rss>

