<?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 fits table size automatically in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-fits-table-size-automatically/m-p/114902#M31777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; First of all, it's hard to understand what you mean because you can only use STYLE= overrides with ODS destinations (not the LISTING output) and HTML behaves differently than "paged" destinations like RTF and PDF. There is no way to answer your question without knowing the destination you've chosen. An HTML table shown on the screen can be as wide as it needs to be. It can be 120 columns wide and 5000 rows long. Since an HTML table does not have "page breaks", it is irrelevant to ODS how "wide" or how long you make the table. So with ODS HTML, I find myself only using CELLWIDTH as a style override if I really find some value or header wrapping where I don't want it to wrap. On the other hand, with RTF and PDF destinations, I frequently use CELLWIDTH (and other options) to try to fit more columns on a very wide report for RTF and PDF destinations. In fact, one of my first postings to the forums was a post on how to deal with very wide reports and "squeeze" as many columns as possible on RTF and/or PDF reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Your statement that "&lt;STRONG&gt;if certain size on the screen is filled with data then it starts to compress the columns in order to fit in. If there is no room to be saved any more then the table starts growing. If there are up to 7 columns (depends on information inside table) it works perfectly&lt;/STRONG&gt;." Again, this is destination dependent. There's a difference between viewing an HTML file on a screen and viewing a PDF file in Adobe Reader on the screen, for example. Adobe Reader displays an image of what the report will look like when it is printed on a physical piece of paper, so ODS has already formatted the PDF output for a physical piece of paper when Adobe shows you the PDF file on the screen. So I'm not sure what you mean by "certain size on the screen is filled with data"&amp;nbsp; -- WHAT "starts to compress the columns"???? Word, Reader? the browser????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; And, the question is not only about form. The destination that you're using could be relevant. Knowing the destination might make a difference in the answer.. The code that you're using is relevant. Is this code inside a stored process? That could make a difference? How are you dynamically building the COLUMN statements for your code? Inside a SAS macro? That could also make a difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Generally speaking, for some destinations, I would NEVER do this:&lt;/P&gt;&lt;P&gt;DEFINE PROFIT / GROUP CENTER STYLE(Column)=[&lt;SPAN style="color: #ff00ff;"&gt;&lt;STRONG&gt;Cellwidth=&lt;SPAN style="text-decoration: underline;"&gt;70&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;];&lt;/P&gt;&lt;P&gt;for example, for RTF and PDF using just a number without a unit of measure (such as IN, CM, PT, % etc) forces the destination to do a conversion from pixels to the unit of measure that the destination is most comfortable with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Using SASHELP.SHOES, the code below produced the attached screenshots. You can compare the "width" of the 3 column report with the "width" of the 7 column report. I set the option to NOCENTER so you could see how the absolute number and unit of measure was used for REGION PRODUCT and SALES in each destination, no matter what number of columns was on the report. Compare the output from the 3 and 7 column reports with the report for the 15 columns without any cellwidth specification. RTF and PDF will "wrap" the&amp;nbsp; columns, while HTML will continue to display ALL the columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I hope this helps. For more direct help, you might want to consider opening a track with Tech Support. They can look at all of your code and your data and help you come to the best resolution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;options topmargin=.5in bottommargin=.5in rightmargin=.5in&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leftmargin=.5in missing=0 nocenter;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title; footnote;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods rtf file='c:\temp\testcolwidth.rtf' startpage=no;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods pdf file='c:\temp\testcolwidth.pdf' startpage=no;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html file='c:\temp\testcolwidth.html';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=sashelp.shoes(obs=5) nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column region product sales;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define region / style(column)={cellwidth=1.25in};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define product / style(column)={cellwidth=1.75in};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define sales / style(column)={cellwidth=1in};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; compute before _page_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; line '1) Only 3 columns';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; endcomp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=sashelp.shoes(obs=5) nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column region product sales subsidiary returns inventory stores;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define region / style(column)={cellwidth=1.25in};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define product / style(column)={cellwidth=1.75in};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define sales / style(column)={cellwidth=1in};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; compute before _page_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; line '2) Only 7 columns';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; endcomp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;** compare to;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods rtf file='c:\temp\verywide.rtf';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods pdf file='c:\temp\verywide.pdf';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods html file='c:\temp\verywide.html';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc report data=sashelp.shoes(obs=5) nowd;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; column region product sales subsidiary returns inventory stores &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; returns=r inventory=i sales=s product=p &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; returns=r2 inventory=i2 sales=s2 region=reg;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define region / 'Reg';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define product / 'Prod';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define sales / 'Sales';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; compute before _page_;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; line '3) Have 15 columns';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; endcomp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2013 04:54:41 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2013-02-20T04:54:41Z</dc:date>
    <item>
      <title>Proc Report fits table size automatically</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-fits-table-size-automatically/m-p/114901#M31776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a strange situation and somehow I can't find a solution for that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report is used to create two different tables that are positioned so that columns fit in both tables. The number of columns is dynamic and can be changed&lt;/P&gt;&lt;P&gt;TABLE 1:&lt;/P&gt;&lt;P&gt;col1&amp;nbsp;&amp;nbsp; col2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col3 ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE 2:&lt;/P&gt;&lt;P&gt;col1&amp;nbsp; col2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col3 ...&lt;/P&gt;&lt;P&gt;Proc Report allows to change column with fot every column, however, if certain size on the screen is filled with data then it starts to compress the columns in order to fit in. If there is no room to be saved any more then the table starts growing. If there are up to 7 columns (depends on information inside table) it works perfectly. The problem is that those two tables can have a lot of missing values (missing statement replaces those to zero).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to keep all my columns like I defined it without any "help" from proc report. I have declared all the columns like this:&lt;/P&gt;&lt;P&gt;DEFINE PROFIT / GROUP CENTER STYLE(Column)=[Cellwidth=70];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the question is about form and not what is showed inside the table, I will not insert the whole code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't whant to use the With=100% statement because then it will fit the table all the the time to the area of 100%. I would like to see a small pair of tables if there are 3 columns and a huge one if someone would like to see 20 columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to force proc report to use the defined cellwith?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for help,&lt;/P&gt;&lt;P&gt;Remo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 20:44:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-fits-table-size-automatically/m-p/114901#M31776</guid>
      <dc:creator>ajuvaba</dc:creator>
      <dc:date>2013-02-19T20:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report fits table size automatically</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-fits-table-size-automatically/m-p/114902#M31777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; First of all, it's hard to understand what you mean because you can only use STYLE= overrides with ODS destinations (not the LISTING output) and HTML behaves differently than "paged" destinations like RTF and PDF. There is no way to answer your question without knowing the destination you've chosen. An HTML table shown on the screen can be as wide as it needs to be. It can be 120 columns wide and 5000 rows long. Since an HTML table does not have "page breaks", it is irrelevant to ODS how "wide" or how long you make the table. So with ODS HTML, I find myself only using CELLWIDTH as a style override if I really find some value or header wrapping where I don't want it to wrap. On the other hand, with RTF and PDF destinations, I frequently use CELLWIDTH (and other options) to try to fit more columns on a very wide report for RTF and PDF destinations. In fact, one of my first postings to the forums was a post on how to deal with very wide reports and "squeeze" as many columns as possible on RTF and/or PDF reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Your statement that "&lt;STRONG&gt;if certain size on the screen is filled with data then it starts to compress the columns in order to fit in. If there is no room to be saved any more then the table starts growing. If there are up to 7 columns (depends on information inside table) it works perfectly&lt;/STRONG&gt;." Again, this is destination dependent. There's a difference between viewing an HTML file on a screen and viewing a PDF file in Adobe Reader on the screen, for example. Adobe Reader displays an image of what the report will look like when it is printed on a physical piece of paper, so ODS has already formatted the PDF output for a physical piece of paper when Adobe shows you the PDF file on the screen. So I'm not sure what you mean by "certain size on the screen is filled with data"&amp;nbsp; -- WHAT "starts to compress the columns"???? Word, Reader? the browser????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; And, the question is not only about form. The destination that you're using could be relevant. Knowing the destination might make a difference in the answer.. The code that you're using is relevant. Is this code inside a stored process? That could make a difference? How are you dynamically building the COLUMN statements for your code? Inside a SAS macro? That could also make a difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Generally speaking, for some destinations, I would NEVER do this:&lt;/P&gt;&lt;P&gt;DEFINE PROFIT / GROUP CENTER STYLE(Column)=[&lt;SPAN style="color: #ff00ff;"&gt;&lt;STRONG&gt;Cellwidth=&lt;SPAN style="text-decoration: underline;"&gt;70&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;];&lt;/P&gt;&lt;P&gt;for example, for RTF and PDF using just a number without a unit of measure (such as IN, CM, PT, % etc) forces the destination to do a conversion from pixels to the unit of measure that the destination is most comfortable with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Using SASHELP.SHOES, the code below produced the attached screenshots. You can compare the "width" of the 3 column report with the "width" of the 7 column report. I set the option to NOCENTER so you could see how the absolute number and unit of measure was used for REGION PRODUCT and SALES in each destination, no matter what number of columns was on the report. Compare the output from the 3 and 7 column reports with the report for the 15 columns without any cellwidth specification. RTF and PDF will "wrap" the&amp;nbsp; columns, while HTML will continue to display ALL the columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I hope this helps. For more direct help, you might want to consider opening a track with Tech Support. They can look at all of your code and your data and help you come to the best resolution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;options topmargin=.5in bottommargin=.5in rightmargin=.5in&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leftmargin=.5in missing=0 nocenter;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title; footnote;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods rtf file='c:\temp\testcolwidth.rtf' startpage=no;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods pdf file='c:\temp\testcolwidth.pdf' startpage=no;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html file='c:\temp\testcolwidth.html';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=sashelp.shoes(obs=5) nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column region product sales;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define region / style(column)={cellwidth=1.25in};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define product / style(column)={cellwidth=1.75in};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define sales / style(column)={cellwidth=1in};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; compute before _page_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; line '1) Only 3 columns';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; endcomp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=sashelp.shoes(obs=5) nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column region product sales subsidiary returns inventory stores;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define region / style(column)={cellwidth=1.25in};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define product / style(column)={cellwidth=1.75in};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define sales / style(column)={cellwidth=1in};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; compute before _page_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; line '2) Only 7 columns';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; endcomp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;** compare to;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods rtf file='c:\temp\verywide.rtf';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods pdf file='c:\temp\verywide.pdf';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods html file='c:\temp\verywide.html';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc report data=sashelp.shoes(obs=5) nowd;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; column region product sales subsidiary returns inventory stores &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; returns=r inventory=i sales=s product=p &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; returns=r2 inventory=i2 sales=s2 region=reg;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define region / 'Reg';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define product / 'Prod';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define sales / 'Sales';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; compute before _page_;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; line '3) Have 15 columns';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; endcomp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 04:54:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-fits-table-size-automatically/m-p/114902#M31777</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-02-20T04:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report fits table size automatically</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-fits-table-size-automatically/m-p/114903#M31778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry it was unclear the first time but I was kind of confused and didn't see that I haven't given the most important information in my description.&lt;/P&gt;&lt;P&gt;It is a page in SAS Portal, created with stored process. It is created directly using data _null_; file _webout and put '&amp;lt;html&amp;gt; ' logic. Table itself is created wirh proc report statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I have is that having more than one table on the page I would like to see them lined up, so that all columns are at the position. Cellwidth statement should make all the columns width the same size. I uploaded a picture how I would like to see it (it is header only but gives a good idea what I mean)&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3312" alt="orig_design.gif" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/3312_orig_design.gif" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have changed the number of columns to be shown and the result looks different. The Weeks 10-13 (first 4 columns) are with different size. The code has not changed.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3314" alt="changed_design.gif" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/3314_changed_design.gif" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is just an example where the beginning is changing. If I show two tables together then I can't say which column will have different width and on the screen it looks like a mess.&lt;/P&gt;&lt;P&gt;I would like to define a width and then keep it no matter how big is the number inside.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this time I could explain the problem better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 13:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-fits-table-size-automatically/m-p/114903#M31778</guid>
      <dc:creator>ajuvaba</dc:creator>
      <dc:date>2013-04-04T13:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report fits table size automatically</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-fits-table-size-automatically/m-p/114904#M31779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you are generating your HTML code with DATA _NULL_, then you are essentially bypassing ODS. So I still don't understand what you mean when you say that the "page ...created with stored process ... is created directly using data _null_; file _webout and put '&amp;lt;html&amp;gt; ' logic. Table itself is created wirh proc report statement."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So I don't understand why the "page" even needs to be created with DATA _NULL_ and _webout and why/how the PROC REPORT "table" works in conjunction with DATA _NULL_ to get the headers you're posting. Just seeing 2 screenshots of the headers is not enough information to go on. Anything suggested is just a guess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Someone really needs to look at all your code (including your DATA _NULL_ and PROC REPORT step) and your metadata information for the stored process and help you figure out what's happening. That's a job for SAS Tech Support. They can open a track and help you figure out the best way to write your stored process to run in the Portal and achieve the results you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; To open a track with Tech Support, fill out the form at this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/ctx/supportform/createForm"&gt;http://support.sas.com/ctx/supportform/createForm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 21:02:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-fits-table-size-automatically/m-p/114904#M31779</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-04-04T21:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report fits table size automatically</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-fits-table-size-automatically/m-p/114905#M31780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have created a example stored process to show what I mean. It's in most cases easier to read the code that to explain...&lt;/P&gt;&lt;P&gt;It's a simple stored process that will deliver 3 Tables. I will run this code in SAS Portal and get the result that bothers me so much. It is very similar to the original code, I left out css part as I'm not a web-designer and can't read this file. My SAS is working on Unix and I can't save ODS Output. We use Internet Explorer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The situation I have created here is a page with 3 Tables and all of them use Proc Report and I have tried to define the witdh of Week column so that all three tables would have the same order which is easier to follow. Now, the table 3 has more columns than other two and for some reason the cellwitdh is not working anymore. I don't mind if it goes outside of screen but I would like to keep the [cellwitdh = 100].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3326" alt="Example1.gif" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/3326_Example1.gif" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The full code to create the result is attached. maybe an example of PROC REPORT that I use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods htmlbody = _webout;&lt;/P&gt;&lt;P&gt;rs=none style=moderntable;&lt;/P&gt;&lt;P&gt;options noquotelenmax;&lt;/P&gt;&lt;P&gt;PROC REPORT data = Data1 nowd NOCENTER SPANROWS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STYLE(HEADER) = [font_weight=bold]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STYLE(REPORT) = [cellspacing=1 cellpadding=0];&lt;/P&gt;&lt;P&gt;COLUMN Name week, profit;&lt;/P&gt;&lt;P&gt;define Name / ' ' GROUP ORDER=DATA;&lt;/P&gt;&lt;P&gt;define week / across order=DATA center 'Week' style={font_weight=bold just=c};&lt;/P&gt;&lt;P&gt;define profit / SUM ' ' center style=[CELLWIDTH=100];&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods html close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have very limited access to the server and for me it doesn't look like technical problem. It seems to be some logic that SAS uses and I would like to understand what exactly is going on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 17:54:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-fits-table-size-automatically/m-p/114905#M31780</guid>
      <dc:creator>ajuvaba</dc:creator>
      <dc:date>2013-04-08T17:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report fits table size automatically</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-fits-table-size-automatically/m-p/114906#M31781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe if you gave it units for the width?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 18:17:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-fits-table-size-automatically/m-p/114906#M31781</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-04-08T18:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report fits table size automatically</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-fits-table-size-automatically/m-p/114907#M31782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I still don't understand why you are using your own HTML statements and then using ODS HTML as well. I still think you want to check that with Tech Support. I think it is unnecessary. I do not have a stored process server to test on and I will be teaching the rest of the week and unable to test on one, but in a batch job, I was able to greatly simplify your code and get this output (see screenshot).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Basically, since PROFIT is under WEEK (an ACROSS usage), I believe that the calculation for cellwidth was getting confused. So I took a different approach. I set a fixed size for NAME. And, then gave an overall outputwidth for the WHOLE REPORT. Then I came up with the same size (10in) for report #1 and #2 and a different size (15.75) for report #3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Code below is what I used. I prefer to work in inches as my unit of measure instead of pixels, which is the default unit used for HTML, when you do not specify a unit of measure. I also got rid of your DATA _NULL_ and just used a TITLE statement for the caption above each table. The other thing I did was to correct your STYLE override. PROC REPORT really wants to have the style specified as:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;style(&lt;SPAN style="color: #ff00ff;"&gt;area&lt;/SPAN&gt;)={&lt;SPAN style="color: #33cccc;"&gt;attribute&lt;/SPAN&gt;=&lt;SPAN style="color: #993366;"&gt;value&lt;/SPAN&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;where AREA is either HEADER or COLUMN on the DEFINE statement. You did not have an area on your DEFINE style overrides, which was additionally making REPORT do more work for every DEFINE. Also, I didn't both to make DATA1, DATA2 and DATA3 files for PROC REPORT, since REPORT supports the use of the WHERE statement directly, I was just able to use TESTDATA for each step (with the appropriate WHERE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;/* Testdata */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;data testdata;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; length name $9 week 8 profit 8;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; infile datalines;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;input name $ week&amp;nbsp; profit ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;datalines; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_1 1 79314&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_1 2 48177&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_1 3 69262&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_1 4 41884&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_1 5 66191&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_1 6 84368&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_1 7 94940&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_1 8 28946&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_1 9 2765&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_1 10 73890&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_1 11 98289&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_1 12 14811&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_1 13 79027&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_1 14 44217&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 1 80968&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 2 71219&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 3 63867&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 4 58441&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 5 74242&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 6 50025&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 7 13506&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 8 67440&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 9 51232&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 10 74253&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 11 61126&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 12 42886&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 13 4518&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 14 93612&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 15 95229&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 16 63107&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 17 93516&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 18 43157&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 19 65117&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 20 32048&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 21 59654&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 22 83856&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;Project_2 23 67951&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc template;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;define style egdfnobr;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; parent=styles.EGDEFAULT;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; style body from body /&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pagebreakhtml=_undef_;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; end;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods HTML body='c:\temp\testcellwidth.html' &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rs=none style=egdfnobr;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;options noquotelenmax; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;/* ------ Table 1 ------ */&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;title j=l h=12pt 'Example Table 1';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;PROC REPORT data = testdata nowd NOCENTER SPANROWS&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; STYLE(HEADER) = [font_weight=bold]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; STYLE(REPORT) = [cellspacing=1 cellpadding=0 outputwidth=10in];&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;where name = 'Project_1';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;COLUMN&amp;nbsp; Name week, profit ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;define Name/' ' GROUP ORDER=DATA style(header)={cellwidth=1in};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;define Week/across order=DATA center 'Week' &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header)={font_weight=bold just=c&amp;nbsp; }&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(column)={font_weight=bold just=c };&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;DEFINE profit /SUM '' center style(column)=[just=c];&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;/* ------ Table 2 ------ */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;title j=l&amp;nbsp; h=12pt 'Example Table 2';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;PROC REPORT data = testdata nowd NOCENTER SPANROWS&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; STYLE(HEADER) = [font_weight=bold]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; STYLE(REPORT) = [cellspacing=1 cellpadding=0 outputwidth=10in];&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;WHERE Name = 'Project_2' AND Week le 14;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;COLUMN&amp;nbsp; Name week, profit ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;define Name/' ' GROUP ORDER=DATA style(header)={cellwidth=1in};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;define Week/across order=DATA center 'Week' &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header)={font_weight=bold just=c&amp;nbsp; }&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(column)={font_weight=bold just=c&amp;nbsp; };&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;DEFINE profit /SUM '' center style(column)=[just=c];&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;/* ------ Table 3 ------ */&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;title j=l&amp;nbsp; h=12pt 'Example Table 3';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;PROC REPORT data = testdata nowd NOCENTER SPANROWS&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; STYLE(HEADER) = [font_weight=bold ]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; STYLE(REPORT) = [cellspacing=1 cellpadding=0 outputwidth=15.75in];&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;WHERE Name = 'Project_2';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;COLUMN&amp;nbsp; Name week, profit ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;define Name/' ' GROUP ORDER=DATA style(header)={cellwidth=1in};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;define Week/across order=DATA center 'Week' &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header)={font_weight=bold just=c&amp;nbsp; }&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(column)={font_weight=bold just=c };&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;DEFINE profit /SUM '' center style(column)=[just=c];&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods html close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;title;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10737iC7EE7DDFE4A7BD2B/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="make_3_tables.png" title="make_3_tables.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 22:36:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-fits-table-size-automatically/m-p/114907#M31782</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-04-08T22:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report fits table size automatically</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-fits-table-size-automatically/m-p/114908#M31783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thank you very much. This seems to do exactly what I need. I will try it in my code and hope that it works out fine. it's very interesting approach.&lt;/P&gt;&lt;P&gt;And thanks for pointing out the mistake in style statement. I have learned that some smaller mistakes are automatically corrected in SAS but it takes time and you never know what is the outcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="output_Cynthia.gif" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/3328_output_Cynthia.gif" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I can't answer the question about HTML statement because I don't know. Maybe it's necessary to Design the whole page where Tables are just a part of it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 10:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-fits-table-size-automatically/m-p/114908#M31783</guid>
      <dc:creator>ajuvaba</dc:creator>
      <dc:date>2013-04-09T10:37:32Z</dc:date>
    </item>
  </channel>
</rss>

