<?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: PROC REPORT Justify left a string in the displayed table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Justify-left-a-string-in-the-displayed-table/m-p/895919#M353977</link>
    <description>&lt;P&gt;Thank so you much Cynthia! Your examples are really helpful and I am learning a bit more about formatting with proc report.&amp;nbsp; It worked but all the titles that do not come from variables, are justified to the left. The only column that it is needed to the justified is the first one. When I add in the style just=l, cohort and measures are both justified to the left. This is a sample of how the table should look like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SanKH1_1-1695743469842.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88355i1CE14C8335F245FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SanKH1_1-1695743469842.png" alt="SanKH1_1-1695743469842.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2023 15:52:28 GMT</pubDate>
    <dc:creator>ANKH1</dc:creator>
    <dc:date>2023-09-26T15:52:28Z</dc:date>
    <item>
      <title>PROC REPORT Justify left a string in the displayed table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Justify-left-a-string-in-the-displayed-table/m-p/895910#M353972</link>
      <description>&lt;P&gt;Hi, I am trying to use proc report to format a table. This is the code I am working with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc report data=final;
  column visitn("^R'\brdrb\brdrs\brdw1'cohort'" visit)
....
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The problem is that "cohort" is not a variable is just a title that goes above the variable visit. How can "cohort" be justified to the left instead of center? This is what it should look like:&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;cohort&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;visit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;baseline&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;month 6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;month 12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;month 18&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Note that this is only a part of the bigger table, but those columns are ok.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 14:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Justify-left-a-string-in-the-displayed-table/m-p/895910#M353972</guid>
      <dc:creator>ANKH1</dc:creator>
      <dc:date>2023-09-26T14:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT Justify left a string in the displayed table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Justify-left-a-string-in-the-displayed-table/m-p/895913#M353974</link>
      <description>&lt;P&gt;You can use what SAS calls the ESCAPECHAR to provide formatting information. An example of center justifying text is shown on page 4 of this document:&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings10/215-2010.pdf" target="_blank" rel="noopener"&gt;https://support.sas.com/resources/papers/proceedings10/215-2010.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you want left justified, instead of JUST=C in that example, you would use ___________ (fill in the blank).&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 15:21:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Justify-left-a-string-in-the-displayed-table/m-p/895913#M353974</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-09-26T15:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT Justify left a string in the displayed table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Justify-left-a-string-in-the-displayed-table/m-p/895915#M353975</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I don't think the RTF control strings will work for you. However, the simple style overrides should work, as shown in these 3 examples. Note that I made example 3 quite extreme and did the Header cells and the Data cells all with different justifications:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1695741741020.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88353iDC46622F6786102A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1695741741020.png" alt="Cynthia_sas_0-1695741741020.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 15:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Justify-left-a-string-in-the-displayed-table/m-p/895915#M353975</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-09-26T15:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT Justify left a string in the displayed table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Justify-left-a-string-in-the-displayed-table/m-p/895916#M353976</link>
      <description>&lt;P&gt;Thanks for your response and sharing the document. But I am not sure how to apply that to the code provided, since this string title is embedded in the table and in proc report? How can ^ be incorporated? I have it already before proc report where I add the title and footnotes of the table.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 15:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Justify-left-a-string-in-the-displayed-table/m-p/895916#M353976</guid>
      <dc:creator>ANKH1</dc:creator>
      <dc:date>2023-09-26T15:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT Justify left a string in the displayed table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Justify-left-a-string-in-the-displayed-table/m-p/895919#M353977</link>
      <description>&lt;P&gt;Thank so you much Cynthia! Your examples are really helpful and I am learning a bit more about formatting with proc report.&amp;nbsp; It worked but all the titles that do not come from variables, are justified to the left. The only column that it is needed to the justified is the first one. When I add in the style just=l, cohort and measures are both justified to the left. This is a sample of how the table should look like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SanKH1_1-1695743469842.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88355i1CE14C8335F245FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SanKH1_1-1695743469842.png" alt="SanKH1_1-1695743469842.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 15:52:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-Justify-left-a-string-in-the-displayed-table/m-p/895919#M353977</guid>
      <dc:creator>ANKH1</dc:creator>
      <dc:date>2023-09-26T15:52:28Z</dc:date>
    </item>
  </channel>
</rss>

