<?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 Conditional Allignment in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-Conditional-Allignment/m-p/358676#M64332</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use CALL DEFINE to set style information dynamically based on some values. See example below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data newClass;
  rowNum = _n_;
  set sashelp.class;
run;

proc report data=newClass;
  column rowNum name sex age _dummy;
  define rowNum / display noprint;
  define name / style={width=6cm};
  define age / display;
  define _dummy / computed noprint;

  compute _dummy;
    if rowNum &amp;lt;= 5 then do;
      call define("name", "style", "style={just=center}");
    end;
    else do;
      call define("name", "style", "style={just=right}");
    end;
  endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 15 May 2017 09:03:49 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2017-05-15T09:03:49Z</dc:date>
    <item>
      <title>Proc report Conditional Allignment</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-Conditional-Allignment/m-p/358675#M64331</link>
      <description>&lt;P&gt;I have to regenrate RTF output in which first 5 row of values should be center alligned and rest of the row in page should be right allinged.&lt;/P&gt;&lt;P&gt;i have order = 1 for first 5 rows and order =2 for rest of the rows in that page.&lt;/P&gt;&lt;P&gt;How would I do that ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 08:54:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-Conditional-Allignment/m-p/358675#M64331</guid>
      <dc:creator>vandhan</dc:creator>
      <dc:date>2017-05-15T08:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report Conditional Allignment</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-Conditional-Allignment/m-p/358676#M64332</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use CALL DEFINE to set style information dynamically based on some values. See example below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data newClass;
  rowNum = _n_;
  set sashelp.class;
run;

proc report data=newClass;
  column rowNum name sex age _dummy;
  define rowNum / display noprint;
  define name / style={width=6cm};
  define age / display;
  define _dummy / computed noprint;

  compute _dummy;
    if rowNum &amp;lt;= 5 then do;
      call define("name", "style", "style={just=center}");
    end;
    else do;
      call define("name", "style", "style={just=right}");
    end;
  endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 May 2017 09:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-Conditional-Allignment/m-p/358676#M64332</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2017-05-15T09:03:49Z</dc:date>
    </item>
  </channel>
</rss>

