<?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 Print number in Decreasing order without proc sort in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Print-number-in-Decreasing-order-without-proc-sort/m-p/311696#M67440</link>
    <description>&lt;P&gt;I have to print all the numbers less than 500 which is divisible by 7 in decreasing order WITHOUT using PROC SORT.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2016 14:32:58 GMT</pubDate>
    <dc:creator>abhaykumar</dc:creator>
    <dc:date>2016-11-15T14:32:58Z</dc:date>
    <item>
      <title>Print number in Decreasing order without proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-number-in-Decreasing-order-without-proc-sort/m-p/311696#M67440</link>
      <description>&lt;P&gt;I have to print all the numbers less than 500 which is divisible by 7 in decreasing order WITHOUT using PROC SORT.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 14:32:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-number-in-Decreasing-order-without-proc-sort/m-p/311696#M67440</guid>
      <dc:creator>abhaykumar</dc:creator>
      <dc:date>2016-11-15T14:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Print number in Decreasing order without proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-number-in-Decreasing-order-without-proc-sort/m-p/311700#M67441</link>
      <description>&lt;P&gt;Why are you not allowed to use proc sort? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you allowed to use proc sort inside a call execute statement in the data step?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 14:39:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-number-in-Decreasing-order-without-proc-sort/m-p/311700#M67441</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2016-11-15T14:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Print number in Decreasing order without proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-number-in-Decreasing-order-without-proc-sort/m-p/311701#M67442</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
do i = 500 to 1 by -1;
  if mod(i,7) = 0 then output;
end;
run;

proc print data=test noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Nov 2016 14:42:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-number-in-Decreasing-order-without-proc-sort/m-p/311701#M67442</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-15T14:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Print number in Decreasing order without proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-number-in-Decreasing-order-without-proc-sort/m-p/311703#M67443</link>
      <description>To find some other method to solve this problem .</description>
      <pubDate>Tue, 15 Nov 2016 14:42:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-number-in-Decreasing-order-without-proc-sort/m-p/311703#M67443</guid>
      <dc:creator>abhaykumar</dc:creator>
      <dc:date>2016-11-15T14:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Print number in Decreasing order without proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-number-in-Decreasing-order-without-proc-sort/m-p/311704#M67444</link>
      <description>Proc sort is not been taught in class yet.</description>
      <pubDate>Tue, 15 Nov 2016 14:42:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-number-in-Decreasing-order-without-proc-sort/m-p/311704#M67444</guid>
      <dc:creator>abhaykumar</dc:creator>
      <dc:date>2016-11-15T14:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Print number in Decreasing order without proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-number-in-Decreasing-order-without-proc-sort/m-p/311706#M67445</link>
      <description>Thank You sir, I was trying this way but I was not knowing about "By -1" thing. and I guess we can increase or decrease by any value by using "by -/+n" step, right?</description>
      <pubDate>Tue, 15 Nov 2016 14:46:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-number-in-Decreasing-order-without-proc-sort/m-p/311706#M67445</guid>
      <dc:creator>abhaykumar</dc:creator>
      <dc:date>2016-11-15T14:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Print number in Decreasing order without proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-number-in-Decreasing-order-without-proc-sort/m-p/311711#M67448</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/108443"&gt;@abhaykumar&lt;/a&gt; wrote:&lt;BR /&gt;Thank You sir, I was trying this way but I was not knowing about "By -1" thing. and I guess we can increase or decrease by any value by using "by -/+n" step, right?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Correct. You can even use values with fractions.&lt;/P&gt;
&lt;P&gt;Like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
do i = 10 to 0 by -1.5;
  output;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Nov 2016 14:50:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-number-in-Decreasing-order-without-proc-sort/m-p/311711#M67448</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-15T14:50:53Z</dc:date>
    </item>
  </channel>
</rss>

