<?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: width make no changes in PROC REPORT in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/width-make-no-changes-in-PROC-REPORT/m-p/251505#M56713</link>
    <description>&lt;P&gt;As I mention, use cellwidth. &amp;nbsp;What is your output destination? &amp;nbsp;You will note from the article I posted that width does not work for HTML destination.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2016 09:48:51 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-02-22T09:48:51Z</dc:date>
    <item>
      <title>width make no changes in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/width-make-no-changes-in-PROC-REPORT/m-p/251494#M56709</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" color="#000080" size="3"&gt;Im learning PROC REPORT but width= doesnt make any changes to my results&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" color="#000080" size="3"&gt;Here are my code:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC REPORT data=ALFRED.EXPENSES headline headskip nowd;
options missing='0';
COL ID Income(CommitmentBank Entertainment),sum Food Accomodation CashFlow CashWithoutBasicSurvival;
DEFINE Income/ GROUP width=25;
/*DEFINE Accomodation / style(column)=[cellwidth=11in];*/
DEFINE CommitmentBank / display style(column)=[cellwidth=11in];
DEFINE Entertainment / display width=200;
DEFINE Food / display width=105;
DEFINE CashWithoutBasicSurvival / COMPUTED;
COMPUTE
 CashWithoutBasicSurvival;
 CashWithoutBasicSurvival = CommitmentBank.sum-Entertainment.sum;
ENDCOMP;
BREAK AFTER Income / summarize;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" color="#000080" size="3"&gt;Need your advice.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 09:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/width-make-no-changes-in-PROC-REPORT/m-p/251494#M56709</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2016-02-22T09:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: width make no changes in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/width-make-no-changes-in-PROC-REPORT/m-p/251499#M56710</link>
      <description>&lt;P&gt;This should help:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://jpsmonline.umd.edu/SASOnlineTutor/sot12/en/60476/m40/m40_16.htm" target="_blank"&gt;http://jpsmonline.umd.edu/SASOnlineTutor/sot12/en/60476/m40/m40_16.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To note, I tend to always specify cellwidth (RTF/PDF output).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also to note, if your learning, its a good idea to learn a set way of programming so your code is easy to read (as most of the time its someone else who has to look at it), for example: consistent casing, indentation:&lt;/P&gt;
&lt;PRE&gt;options missing='0';

proc report data=alfred.expenses headline headskip nowd;
  columns id income(commitmentbank entertainment),sum food accomodation cashflow cashwithoutbasicsurvival;

  define income         / group width=25;
  /*define accomodation / style(column)=[cellwidth=11in];*/
  define commitmentbank / display style(column)=[cellwidth=11in];
  define entertainment  / display width=200;
  define food           / display width=105;
  define cashwithoutbasicsurvival / computed;

  compute
    cashwithoutbasicsurvival;
    cashwithoutbasicsurvival = commitmentbank.sum-entertainment.sum;
  endcomp;

  break after income / summarize;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Feb 2016 09:33:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/width-make-no-changes-in-PROC-REPORT/m-p/251499#M56710</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-02-22T09:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: width make no changes in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/width-make-no-changes-in-PROC-REPORT/m-p/251503#M56712</link>
      <description>Thanks for pointing out ... however, i still couldn't find the solution that i want. I tried putting width=2 and width=9 and width=50, still the same.</description>
      <pubDate>Mon, 22 Feb 2016 09:44:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/width-make-no-changes-in-PROC-REPORT/m-p/251503#M56712</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2016-02-22T09:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: width make no changes in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/width-make-no-changes-in-PROC-REPORT/m-p/251505#M56713</link>
      <description>&lt;P&gt;As I mention, use cellwidth. &amp;nbsp;What is your output destination? &amp;nbsp;You will note from the article I posted that width does not work for HTML destination.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 09:48:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/width-make-no-changes-in-PROC-REPORT/m-p/251505#M56713</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-02-22T09:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: width make no changes in PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/width-make-no-changes-in-PROC-REPORT/m-p/251523#M56716</link>
      <description>&lt;P&gt;You don't say, but I assume you're writing your report to an ODS destination that supports styles, such as RTF or PDF, since I see the the STYLE and CELLWIDTH option in your code. The WIDTH option applies only to listing output and has no effect in these destinations. Use CELLWIDTH instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The WIDTH option is ignored&amp;nbsp;in styled destinations because it specifies the column width in terms of &lt;EM&gt;characters&lt;/EM&gt;. Styled destinations commonly use proportional-width fonts. Counting&amp;nbsp;characters doesn't have much use when the characters can have different widths. (For example, "i" vs. "m".) In styled destinations specifying the column width in measurements such as inches or millimeters (the value of the CELLWIDTH option) is much more useful.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 13:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/width-make-no-changes-in-PROC-REPORT/m-p/251523#M56716</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2016-02-22T13:26:03Z</dc:date>
    </item>
  </channel>
</rss>

