<?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 order of negative values in proc report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/order-of-negative-values-in-proc-report/m-p/601055#M173817</link>
    <description>&lt;P&gt;I'm using the code below and want DAYS to be summarized in order from day -28 to day +28, however for the negative days, each page orders the days like they were positive.&amp;nbsp; For example page one of the table goes from day -21 to day -28 instead of from day -28 to day -21, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report data=final out=tvalid.v_&amp;amp;pgmname nowd headline split='|' missing/* style = [outputwidth=100%] */&lt;BR /&gt;style(header)=[asis=on just=center protectspecialchars=off]&lt;BR /&gt;style(column)=[asis=on just=center protectspecialchars=off] ;&lt;BR /&gt;column pgbrkvar period periodc diary_day order_ stat_cat col1;&lt;BR /&gt;define pgbrkvar / order noprint;&lt;BR /&gt;define period / order noprint;&lt;BR /&gt;define periodc / order style=[just=l cellwidth=1.1in] "Period";&lt;BR /&gt;define diary_day / order style=[just=l cellwidth=1.1in] "Day";&lt;BR /&gt;define order_ / order noprint;&lt;BR /&gt;define stat_cat / order style=[just=l cellwidth=1.1in] "Statistic";&lt;BR /&gt;define col1 / display style=[just=c cellwidth=0.7in] "(N=&amp;amp;g.)";&lt;BR /&gt;break after pgbrkvar /page;&lt;BR /&gt;compute before;&lt;BR /&gt;line ' ';&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Nov 2019 18:50:50 GMT</pubDate>
    <dc:creator>msecic</dc:creator>
    <dc:date>2019-11-01T18:50:50Z</dc:date>
    <item>
      <title>order of negative values in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/order-of-negative-values-in-proc-report/m-p/601055#M173817</link>
      <description>&lt;P&gt;I'm using the code below and want DAYS to be summarized in order from day -28 to day +28, however for the negative days, each page orders the days like they were positive.&amp;nbsp; For example page one of the table goes from day -21 to day -28 instead of from day -28 to day -21, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report data=final out=tvalid.v_&amp;amp;pgmname nowd headline split='|' missing/* style = [outputwidth=100%] */&lt;BR /&gt;style(header)=[asis=on just=center protectspecialchars=off]&lt;BR /&gt;style(column)=[asis=on just=center protectspecialchars=off] ;&lt;BR /&gt;column pgbrkvar period periodc diary_day order_ stat_cat col1;&lt;BR /&gt;define pgbrkvar / order noprint;&lt;BR /&gt;define period / order noprint;&lt;BR /&gt;define periodc / order style=[just=l cellwidth=1.1in] "Period";&lt;BR /&gt;define diary_day / order style=[just=l cellwidth=1.1in] "Day";&lt;BR /&gt;define order_ / order noprint;&lt;BR /&gt;define stat_cat / order style=[just=l cellwidth=1.1in] "Statistic";&lt;BR /&gt;define col1 / display style=[just=c cellwidth=0.7in] "(N=&amp;amp;g.)";&lt;BR /&gt;break after pgbrkvar /page;&lt;BR /&gt;compute before;&lt;BR /&gt;line ' ';&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 18:50:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/order-of-negative-values-in-proc-report/m-p/601055#M173817</guid>
      <dc:creator>msecic</dc:creator>
      <dc:date>2019-11-01T18:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: order of negative values in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/order-of-negative-values-in-proc-report/m-p/601059#M173818</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1922"&gt;@msecic&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm using the code below and want DAYS to be summarized in order from day -28 to day +28 ...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, if you want values to appear in numeric order rather than alphabetical order, you would use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;define variablename / order=internal;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This assumes that the values of the variable are numeric, and not character values like '-28'.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 20:06:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/order-of-negative-values-in-proc-report/m-p/601059#M173818</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-01T20:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: order of negative values in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/order-of-negative-values-in-proc-report/m-p/601112#M173828</link>
      <description>...and also, without data, no one can test your code, so we don't know whether your variable is character or numeric.&lt;BR /&gt;Cynthia</description>
      <pubDate>Fri, 01 Nov 2019 22:49:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/order-of-negative-values-in-proc-report/m-p/601112#M173828</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-11-01T22:49:12Z</dc:date>
    </item>
  </channel>
</rss>

