<?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: How to change the width of each column in Proc report? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-width-of-each-column-in-Proc-report/m-p/909804#M358827</link>
    <description>&lt;P&gt;You photographs of your output make it look like you are using ODS to generate some type of fancy file format, PDF, HTML, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The WIDTH= option is for saying how many characters the listing output should use.&amp;nbsp; It has no effect on ODS outputs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will have to use ODS style settings if you want to control what the ODS output looks like.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Dec 2023 05:21:49 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2023-12-28T05:21:49Z</dc:date>
    <item>
      <title>How to change the width of each column in Proc report?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-width-of-each-column-in-Proc-report/m-p/909777#M358821</link>
      <description>&lt;P&gt;Hi guys! I have a question about how&amp;nbsp;to change the width of each column in Proc report?&lt;/P&gt;&lt;P&gt;here is my code:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;options nodate ls=140;&lt;BR /&gt;%macro prttxt(inds=, title6=);&lt;BR /&gt;ods pdf file= " /home/u62957101/sasuser.v94/Project2C/output/Table13.pdf";&lt;BR /&gt;title1 bold "Table 13";&lt;BR /&gt;title2 bold "Best Overall Response per Investigatorr by Age Category";&lt;BR /&gt;title3 bold "ITT Subjects";&lt;BR /&gt;title4 " " ;&lt;BR /&gt;title5 " " ;&lt;BR /&gt;title5 j=l lspace=3 height=0.8 font="Arial" "Subgroup:Age Category &amp;amp;title6";&lt;BR /&gt;&lt;BR /&gt;proc report data=final1_age&amp;amp;inds nowd headline headskip split="|" spacing=3;&lt;BR /&gt;column ord_I ord col1 ("Number of Subjects (%) " "____" (CMP123 Placebo Total));&lt;BR /&gt;define ord_I/order order=internal noprint;&lt;BR /&gt;define ord/order order=internal noprint;&lt;BR /&gt;define col1/" " style(column)={asis=on} width=35 flow;&lt;BR /&gt;define CMP123/ "CMP123|(N=%left(&amp;amp;NC))" width=16 left;&lt;BR /&gt;define Placebo/"Placebo|(N=%left(&amp;amp;NP)" width=16 left;&lt;BR /&gt;define Total/ "Total|(N=%left(&amp;amp;NT)" width=16 left;&lt;BR /&gt;&lt;BR /&gt;break after ord_I /skip;&lt;BR /&gt;compute after;&lt;BR /&gt;line @1 110*" _";&lt;BR /&gt;line @1 "(1): 95% confidence interval computed using Clopper-Pearson approach.";&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;%mend prttxt;&lt;BR /&gt;%prttxt(inds=1,title6= &amp;lt;65);&lt;BR /&gt;%prttxt(inds=2,title6= &amp;gt;=65);&lt;BR /&gt;ods pdf close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and my output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-12-27 at 7.16.23 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/92093i5CB0FA67A45CD180/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-12-27 at 7.16.23 PM.png" alt="Screenshot 2023-12-27 at 7.16.23 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and this is my expected output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-12-27 at 7.17.00 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/92094iD3ADB80DAAF1AA0C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-12-27 at 7.17.00 PM.png" alt="Screenshot 2023-12-27 at 7.17.00 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've changed the width of each column, but it didn't change. How can I make all columns in the same line? Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 00:17:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-width-of-each-column-in-Proc-report/m-p/909777#M358821</guid>
      <dc:creator>Sikcion</dc:creator>
      <dc:date>2023-12-28T00:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the width of each column in Proc report?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-width-of-each-column-in-Proc-report/m-p/909779#M358822</link>
      <description>&lt;P&gt;Using style:&lt;/P&gt;
&lt;P&gt;style={cellwidth=10%}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file='c:\temp\temp.pdf';
proc report data=sashelp.heart(obs=10  keep=status sex bp_status ageatstart weight height ) nowd ;
column status sex bp_status ("Number of Subjects (%) " "____" (ageatstart weight height));
define _all_/style={cellwidth=10%};
run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 01:46:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-width-of-each-column-in-Proc-report/m-p/909779#M358822</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-12-28T01:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the width of each column in Proc report?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-width-of-each-column-in-Proc-report/m-p/909804#M358827</link>
      <description>&lt;P&gt;You photographs of your output make it look like you are using ODS to generate some type of fancy file format, PDF, HTML, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The WIDTH= option is for saying how many characters the listing output should use.&amp;nbsp; It has no effect on ODS outputs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will have to use ODS style settings if you want to control what the ODS output looks like.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 05:21:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-width-of-each-column-in-Proc-report/m-p/909804#M358827</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-12-28T05:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the width of each column in Proc report?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-width-of-each-column-in-Proc-report/m-p/909848#M358833</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt; is correct the simple form of WIDTH= is a LISTING only option that impacts the output window results, but has no impact on ODS destinations like ODS RTF, ODS PDF, ODS HTML or ODS EXCEL. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt; is also correct in that he shows you the use of the CELLWIDTH= style override syntax. However, I prefer NOT to use percents or pixels as the value of CELLWIDTH because I find the percents less reliable in the destinations I use than specifying a more concrete unit of measure, like IN or CM. Some destinations (like RTF) convert whatever you specify into an internal unit of measure anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's an example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1703775162664.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/92118iFF34E4691927FE11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1703775162664.png" alt="Cynthia_sas_0-1703775162664.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This screenshot is showing the default ODS HTML output.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 14:53:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-width-of-each-column-in-Proc-report/m-p/909848#M358833</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-12-28T14:53:51Z</dc:date>
    </item>
  </channel>
</rss>

