<?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: Dynamic column width in proc report for ODS RTFdestination. in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-column-width-in-proc-report-for-ODS-RTFdestination/m-p/216300#M14176</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 don't see your %macro/%mend statements for the macro program definition. You can't have %IF or %DO in open code. Are you getting error messages?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This paper had some suggestions about using ID and PAGE: &lt;A href="http://support.sas.com/resources/papers/proceedings14/SAS038-2014.pdf" title="http://support.sas.com/resources/papers/proceedings14/SAS038-2014.pdf"&gt;http://support.sas.com/resources/papers/proceedings14/SAS038-2014.pdf&lt;/A&gt; see page 15/16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This paper has some information about %IF and %DO: &lt;A href="http://support.sas.com/resources/papers/proceedings13/120-2013.pdf" title="http://support.sas.com/resources/papers/proceedings13/120-2013.pdf"&gt;http://support.sas.com/resources/papers/proceedings13/120-2013.pdf&lt;/A&gt; see page 17/18&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2015 03:01:01 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2015-05-18T03:01:01Z</dc:date>
    <item>
      <title>Dynamic column width in proc report for ODS RTFdestination.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-column-width-in-proc-report-for-ODS-RTFdestination/m-p/216299#M14175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to generate dynamic report with Proc report&lt;/P&gt;&lt;P&gt;I have 15 variables in a dataset, out of which 3 variables are constant for all the subjects and they should be displayed in the report (Subejct, Category, Parameter)&lt;/P&gt;&lt;P&gt;the rest 12 varibles are values collected at various dates, the subject might have maximum 12 dates, but can also only 1 date.&lt;/P&gt;&lt;P&gt;If a subject has only 1 date that means that subject will have only 4 variables to display in the report, where as if a subject has 12 dates that means the subject has 15 variables to display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex1: If there are 4 variables for a subject, 3 variables which are constant can be given definitive width (10%, 10%, 10%) . The rest of the width available for that 1 variable should be 69% ( if we assume cellwidth total is 99%)&lt;/P&gt;&lt;P&gt;Ex2&amp;nbsp; if there are 6 variable for another subject, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;3 variables which are constant can be given definitive width (10%, 10%, 10%)&amp;nbsp; the rest of the width available for 3 more variable should be 23% 23% 23%)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;The maximum i can have on one page is onlyTotal 6 (3 constat variable + 3 dated variables)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;If there are 9 variables for a subject the other 3 variable should slip into next page (3 constant variables will also appear in the next page as I am using &lt;STRONG&gt;id &lt;/STRONG&gt;option in proc report.) Im trying to make the width dynamic but its not allowing me or not getting any idea&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;ods listing close;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;ods rtf file = "&amp;amp;output." style=styles.&amp;amp;rpttype. nogfootnote nogtitle startpage = yes;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;%do zz=1 %to &amp;amp;n_rand;&amp;nbsp; /****** getting each subject**********/&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;&amp;nbsp; proc report data=&amp;amp;data nowd missing headskip spacing=1 split='~'&amp;nbsp;&amp;nbsp; ; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;&amp;nbsp; column page subjid paramn paramcd param &lt;STRONG&gt;dt_1-dt_&amp;amp;&amp;amp;mdt&amp;amp;zz&lt;/STRONG&gt; ;&amp;nbsp;&amp;nbsp; /***** high lighted ones are dated variables which are dynamic***/&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;&amp;nbsp; where usubjid eq "&amp;amp;&amp;amp;sid&amp;amp;zz" ;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;&amp;nbsp; define page&amp;nbsp;&amp;nbsp;&amp;nbsp; /order order=internal noprint; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;&amp;nbsp; define subjid&amp;nbsp; /order order=internal noprint; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;&amp;nbsp; define paramn&amp;nbsp; /order order=internal noprint; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;&amp;nbsp; define paramcd /order order=internal noprint; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;&amp;nbsp; define param&amp;nbsp;&amp;nbsp; /order order=internal style={just=left asis=on cellwidth=30%} id flow left&amp;nbsp; "Laboratory Test"; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;&amp;nbsp; %do xx=1 %to &amp;amp;&amp;amp;mdt&amp;amp;zz;&amp;nbsp;&amp;nbsp; /****** dated variables *******/&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;&amp;nbsp; define dt_&amp;amp;xx /display "&amp;amp;&amp;amp;v&amp;amp;zz.&amp;amp;xx"&amp;nbsp; %if &amp;amp;xx=5 or &amp;amp;xx=9 or &amp;amp;xx=13 %then page;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %if &amp;amp;&amp;amp;mdt&amp;amp;zz&amp;gt;4 and &amp;amp;xx&amp;lt;=4 %then %do; style={just=left asis=on cellwidth=%eval(68/4)%} ; %end;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;&amp;nbsp; %else&amp;nbsp; %if 5&amp;lt;=&amp;amp;&amp;amp;mdt&amp;amp;zz&amp;lt;=8 and 4&amp;lt;&amp;amp;xx&amp;lt;=8 %then %do; style={just=left asis=on cellwidth=%eval(68/(&amp;amp;&amp;amp;mdt&amp;amp;zz-4))%} ; %end;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %else&amp;nbsp; %if 9&amp;lt;=&amp;amp;&amp;amp;mdt&amp;amp;zz&amp;lt;=12 and 4&amp;lt;&amp;amp;xx&amp;lt;=8 %then %do; style={just=left asis=on cellwidth=%eval(68/4)%} ; %end; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;&amp;nbsp; %else&amp;nbsp; %if 9&amp;lt;=&amp;amp;&amp;amp;mdt&amp;amp;zz&amp;lt;=12 and 8&amp;lt;&amp;amp;xx&amp;lt;=12 %then %do; style={just=left asis=on cellwidth=%eval(68/(&amp;amp;&amp;amp;mdt&amp;amp;zz-8))%} ; %end;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;&amp;nbsp; ; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;&amp;nbsp; %end; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt; run; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;%end; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;ods rtf close;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;ods listing;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="10463" alt="Capture.PNG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/10463_Capture.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 02:07:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-column-width-in-proc-report-for-ODS-RTFdestination/m-p/216299#M14175</guid>
      <dc:creator>SASSLICK001</dc:creator>
      <dc:date>2015-05-18T02:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic column width in proc report for ODS RTFdestination.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-column-width-in-proc-report-for-ODS-RTFdestination/m-p/216300#M14176</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 don't see your %macro/%mend statements for the macro program definition. You can't have %IF or %DO in open code. Are you getting error messages?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This paper had some suggestions about using ID and PAGE: &lt;A href="http://support.sas.com/resources/papers/proceedings14/SAS038-2014.pdf" title="http://support.sas.com/resources/papers/proceedings14/SAS038-2014.pdf"&gt;http://support.sas.com/resources/papers/proceedings14/SAS038-2014.pdf&lt;/A&gt; see page 15/16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This paper has some information about %IF and %DO: &lt;A href="http://support.sas.com/resources/papers/proceedings13/120-2013.pdf" title="http://support.sas.com/resources/papers/proceedings13/120-2013.pdf"&gt;http://support.sas.com/resources/papers/proceedings13/120-2013.pdf&lt;/A&gt; see page 17/18&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 03:01:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-column-width-in-proc-report-for-ODS-RTFdestination/m-p/216300#M14176</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-05-18T03:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic column width in proc report for ODS RTFdestination.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-column-width-in-proc-report-for-ODS-RTFdestination/m-p/216301#M14177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another alternative is to pre compute this in the dataset.&amp;nbsp; So:&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; subj="001"; cat="abc"; param="def"; d1="01jan14"d; d2="14jan14"d; d3="15jan14"d; d4="18jan14"d; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; subj="002"; cat="abc"; param="def"; d1="01jan14"d; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; subj="003"; cat="abc"; param="def"; d1="01jan14"d; d2="14jan14"d; d3="15jan14"d; output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ods rtf ...;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Page 1 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; call execute('proc report data=have ...; columns subj cat param ');&lt;/P&gt;&lt;P&gt;&amp;nbsp; if d1 ne. then call execute('d1');&lt;/P&gt;&lt;P&gt;&amp;nbsp; if d2 ne. then call execute('d2');&lt;/P&gt;&lt;P&gt;&amp;nbsp; if d3 ne. then call execute('d3');&lt;/P&gt;&lt;P&gt;&amp;nbsp; call execute('; define subj / "subj" order; define cat / "cat" order; define param / "Param" order; ');&lt;/P&gt;&lt;P&gt;&amp;nbsp; if d2 ne . and d3 ne . then width=5;&lt;/P&gt;&lt;P&gt;&amp;nbsp; else if d2 ne . then width=8;&lt;/P&gt;&lt;P&gt;&amp;nbsp; else width=10;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if d1 ne. then call execute('define d1 / "Adate" style(column)=[cellwidth='||put(width,2.)||'];');&lt;/P&gt;&lt;P&gt;&amp;nbsp; if d2 ne. then call execute('define d2 / "Adate2" style(column)=[cellwidth='||put(width,2.)||'];');&lt;/P&gt;&lt;P&gt;&amp;nbsp; if d3 ne. then call execute('define d3 / "Adate3" style(column)=[cellwidth='||put(width,2.)||'];');&lt;/P&gt;&lt;P&gt;&amp;nbsp; call execute('run;');&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Page 2 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; if d4 ne . then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('proc report data=have ...; columns subj cat param d4;');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('define subj / "subj" order; define cat / "cat" order; define param / "Param" order; define d4 / "Adate4"; run;');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Note just assumed its there so no generic */&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 08:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-column-width-in-proc-report-for-ODS-RTFdestination/m-p/216301#M14177</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-05-18T08:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic column width in proc report for ODS RTFdestination.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-column-width-in-proc-report-for-ODS-RTFdestination/m-p/216302#M14178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cynthia&lt;/P&gt;&lt;P&gt;I have %macro and %mend already in the program, just I didnt include it here!. I am not getting any error, but the alignment/arrangement is &lt;STRONG&gt;not&lt;/STRONG&gt; happening according to my wanted output!!&lt;/P&gt;&lt;P&gt;I was looking for some ideas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 14:18:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-column-width-in-proc-report-for-ODS-RTFdestination/m-p/216302#M14178</guid>
      <dc:creator>SASSLICK001</dc:creator>
      <dc:date>2015-05-18T14:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic column width in proc report for ODS RTFdestination.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-column-width-in-proc-report-for-ODS-RTFdestination/m-p/216303#M14179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the problem is my code actually works but somehow SAS is automatically taking &lt;STRONG&gt;cellwidth =13%&lt;/STRONG&gt; if my page is rolled over to second page for some subjects!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 19:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-column-width-in-proc-report-for-ODS-RTFdestination/m-p/216303#M14179</guid>
      <dc:creator>SASSLICK001</dc:creator>
      <dc:date>2015-05-18T19:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic column width in proc report for ODS RTFdestination.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-column-width-in-proc-report-for-ODS-RTFdestination/m-p/216304#M14180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may be having issues with using %eval unless you want decimals truncated as %eval only does integer arithmetic. You might want to use %sysevalf if &amp;amp;&amp;amp;mdt&amp;amp;zz has values near 9&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 21:02:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-column-width-in-proc-report-for-ODS-RTFdestination/m-p/216304#M14180</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-05-18T21:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic column width in proc report for ODS RTFdestination.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-column-width-in-proc-report-for-ODS-RTFdestination/m-p/216305#M14181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Somehow the cellwidth is being take only 13.6 even after usin &lt;STRONG&gt;sysevalf, it suppose to take 68/4 which is 17&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2015 20:55:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-column-width-in-proc-report-for-ODS-RTFdestination/m-p/216305#M14181</guid>
      <dc:creator>SASSLICK001</dc:creator>
      <dc:date>2015-05-23T20:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic column width in proc report for ODS RTFdestination.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-column-width-in-proc-report-for-ODS-RTFdestination/m-p/216306#M14182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might post your updated code using %sysevalf.&lt;/P&gt;&lt;P&gt;And since you are only showing part of the macro (obvious since you have %do /%end construct which won't work in open code) you may be having issues elsewhere as well. Such as none of your comparisons resolving to true and getting a default.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 14:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Dynamic-column-width-in-proc-report-for-ODS-RTFdestination/m-p/216306#M14182</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-05-26T14:54:03Z</dc:date>
    </item>
  </channel>
</rss>

