<?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 problem: I need to left justify one column and right justify others [how to improve your question] in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-justify-problem-I-need-to-left-justify-one-column/m-p/620851#M23734</link>
    <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/298546"&gt;@Kelsey_SAS&lt;/a&gt;,&lt;/P&gt;&lt;BR /&gt; &lt;P&gt;Your question requires more details before experts can help.&amp;nbsp;Can you revise your question to include more information?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Review this checklist:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Specify a meaningful subject line for your topic.&amp;nbsp; Avoid generic subjects like "need help," "SAS query," or "urgent."&lt;/LI&gt;
&lt;LI&gt;When appropriate, provide sample data in text or DATA step format.&amp;nbsp; See &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;this article for one method&lt;/A&gt;&amp;nbsp;you can use.&lt;/LI&gt;
&lt;LI&gt;If you're encountering an error in SAS, include the SAS log or a screenshot of the error condition.&amp;nbsp;Use the&amp;nbsp;&lt;STRONG&gt;Photos&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;button to include the image in your message.&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" style="width: 279px;"&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/16608i91A52F817EAC9A69/image-dimensions/279x150?v=1.0" width="279" height="150" alt="use_buttons.png" title="use_buttons.png" /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;It also helps to include an example (table or picture) of the result that you're trying to achieve.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;To edit your original message, select the "blue gear" icon at the top of the message and select&amp;nbsp;&lt;STRONG&gt;Edit Message&lt;/STRONG&gt;.&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;From there you can adjust the title and add more details to the body of the message.&amp;nbsp; Or, simply reply to this message with any additional information you can supply.&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" style="width: 229px;"&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/16605iAC020BC79315B045/image-size/large?v=1.0&amp;amp;px=600" alt="edit_post.png" title="edit_post.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SAS experts are eager to help -- help&amp;nbsp;&lt;EM&gt;them&lt;/EM&gt; by providing as much detail as you can.&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style:italic;font-size:smaller;"&gt;This prewritten response was triggered for you by fellow SAS Support Communities member &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&lt;/SPAN&gt;&lt;/P&gt;.</description>
    <pubDate>Wed, 29 Jan 2020 16:07:45 GMT</pubDate>
    <dc:creator>Community_Guide</dc:creator>
    <dc:date>2020-01-29T16:07:45Z</dc:date>
    <item>
      <title>Proc Report justify problem: I need to left justify one column and right justify others</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-justify-problem-I-need-to-left-justify-one-column/m-p/620808#M23733</link>
      <description>&lt;P&gt;I'm struggling with PROC REPORT on my break statements.&amp;nbsp; I have a couple of columns that are numerical and should be right justified--and in the main output table it right justifies correctly.&amp;nbsp; However, I have a couple of break after statements that are summarizing the numbers, and for some reason they left justify by default.&amp;nbsp; I could add style(summary)={just=right}, but then it also right justifies the categorical columns, which should be left justified.&amp;nbsp; Anyone know a way to left justify some columns and right justify others?&amp;nbsp; I've tried a million different ways and nothing seems to work.&amp;nbsp; Thank you.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test ;
infile datalines truncover;
input cust_order:$356. pledge_order:$25. bbcrm_pledge_id: $100. open_amount_rem:8. past_due_amount_rem:8.;
datalines;
Bread REV-123456 REV-123456 25 75
Bread REV-123456 REV-123456 35 65
Bread REV-123456 REV-123456 100 0
Bacon REV-234567 REV-234567 200 0
Bacon REV-234567 REV-234567 100 100
Bacon REV-234567 REV-234567 150 0
Coffee REV-345678 REV-345678 100 25
Coffee REV-345678 REV-345678 60 140
Coffee REV-345678 REV-345678 50 50
;
run;


proc report data=test spanrows
style(report)=[bordercolor=black borderwidth=3 just=right]
style(header)=[foreground=black background=light grey font_weight=bold bordercolor=black borderwidth=3 just=R]
style(summary)=[background=light grey font_weight=bold just=l bordertopcolor=black bordertopwidth=3 borderbottomcolor=black borderbottomwidth=3];
columns
cust_order
pledge_order
bbcrm_pledge_id
open_amount_rem
past_due_amount_rem
;
define pledge_order/order style(column)={just=r} noprint;
define cust_order/order style(column)={just=r} noprint;
define bbcrm_pledge_id/display style(column)=[borderleftcolor=black borderleftwidth=3 just=L];
break after cust_order /summarize dol dul style(summary)=[background=cxE4DFEC];
break after pledge_order /summarize dol dul style(summary)=[background=cxFCD5B4 ];
rbreak after/summarize ;
compute after cust_order;
bbcrm_pledge_id= 'Total '||trim(cust_order);
endcomp;
compute after pledge_order;
bbcrm_pledge_id= 'Total '||pledge_order;
endcomp;
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jan 2020 13:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-justify-problem-I-need-to-left-justify-one-column/m-p/620808#M23733</guid>
      <dc:creator>Kelsey_SAS</dc:creator>
      <dc:date>2020-01-29T13:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report justify problem: I need to left justify one column and right justify others [how to improve your question]</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-justify-problem-I-need-to-left-justify-one-column/m-p/620851#M23734</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/298546"&gt;@Kelsey_SAS&lt;/a&gt;,&lt;/P&gt;&lt;BR /&gt; &lt;P&gt;Your question requires more details before experts can help.&amp;nbsp;Can you revise your question to include more information?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Review this checklist:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Specify a meaningful subject line for your topic.&amp;nbsp; Avoid generic subjects like "need help," "SAS query," or "urgent."&lt;/LI&gt;
&lt;LI&gt;When appropriate, provide sample data in text or DATA step format.&amp;nbsp; See &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;this article for one method&lt;/A&gt;&amp;nbsp;you can use.&lt;/LI&gt;
&lt;LI&gt;If you're encountering an error in SAS, include the SAS log or a screenshot of the error condition.&amp;nbsp;Use the&amp;nbsp;&lt;STRONG&gt;Photos&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;button to include the image in your message.&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" style="width: 279px;"&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/16608i91A52F817EAC9A69/image-dimensions/279x150?v=1.0" width="279" height="150" alt="use_buttons.png" title="use_buttons.png" /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;It also helps to include an example (table or picture) of the result that you're trying to achieve.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;To edit your original message, select the "blue gear" icon at the top of the message and select&amp;nbsp;&lt;STRONG&gt;Edit Message&lt;/STRONG&gt;.&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;From there you can adjust the title and add more details to the body of the message.&amp;nbsp; Or, simply reply to this message with any additional information you can supply.&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" style="width: 229px;"&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/16605iAC020BC79315B045/image-size/large?v=1.0&amp;amp;px=600" alt="edit_post.png" title="edit_post.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SAS experts are eager to help -- help&amp;nbsp;&lt;EM&gt;them&lt;/EM&gt; by providing as much detail as you can.&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style:italic;font-size:smaller;"&gt;This prewritten response was triggered for you by fellow SAS Support Communities member &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&lt;/SPAN&gt;&lt;/P&gt;.</description>
      <pubDate>Wed, 29 Jan 2020 16:07:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-justify-problem-I-need-to-left-justify-one-column/m-p/620851#M23734</guid>
      <dc:creator>Community_Guide</dc:creator>
      <dc:date>2020-01-29T16:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report justify problem: I need to left justify one column and right justify others</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-justify-problem-I-need-to-left-justify-one-column/m-p/620858#M23735</link>
      <description>&lt;P&gt;Please be very explicit in describing which columns or cells you need to be right and left justified. Currently the only thing you attempt to justify right has the NOPRINT property so it doesn't&amp;nbsp;appear in the result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you mean that you want the numeric values in the summary lines to be right justified then remove the JUST=L that you have in:&lt;/P&gt;
&lt;PRE&gt;style(summary)=[background=light grey font_weight=bold just=l bordertopcolor=black bordertopwidth=3 borderbottomcolor=black borderbottomwidth=3];
&lt;/PRE&gt;
&lt;P&gt;because that says everything in the summary is to be left justified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since character values by default will be left justified and numeric right justified that seems like what you may want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may find that the (column) and (summary) in the style defines for the DEFINE statements aren't needed and I suspect are not used as Define is more of a cell behavior control, just all of the cells of like type so they appear to be column or summary.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 16:17:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-justify-problem-I-need-to-left-justify-one-column/m-p/620858#M23735</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-01-29T16:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report justify problem: I need to left justify one column and right justify others</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-justify-problem-I-need-to-left-justify-one-column/m-p/620865#M23736</link>
      <description>&lt;P&gt;Haha--so easy!&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 16:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-justify-problem-I-need-to-left-justify-one-column/m-p/620865#M23736</guid>
      <dc:creator>Kelsey_SAS</dc:creator>
      <dc:date>2020-01-29T16:22:49Z</dc:date>
    </item>
  </channel>
</rss>

