<?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: while executing the sas programm ask the record no and print that recor in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/while-executing-the-sas-programm-ask-the-record-no-and-print/m-p/4936#M1976</link>
    <description>Here is an example:&lt;BR /&gt;
&lt;BR /&gt;
data test;&lt;BR /&gt;
    input number 1 value $3-4;&lt;BR /&gt;
cards;&lt;BR /&gt;
1 12&lt;BR /&gt;
2 23&lt;BR /&gt;
3 45&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
%macro pr(lineNum);&lt;BR /&gt;
proc print data=test(firstobs=&amp;amp;lineNum obs=&amp;amp;lineNum);&lt;BR /&gt;
run;&lt;BR /&gt;
%mend;&lt;BR /&gt;
options mprint;&lt;BR /&gt;
%pr(4);</description>
    <pubDate>Thu, 04 Oct 2007 08:57:03 GMT</pubDate>
    <dc:creator>Anitha_SAS</dc:creator>
    <dc:date>2007-10-04T08:57:03Z</dc:date>
    <item>
      <title>while executing the sas programm ask the record no and print that record</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/while-executing-the-sas-programm-ask-the-record-no-and-print/m-p/4935#M1975</link>
      <description>hI,&lt;BR /&gt;
i have a table like this&lt;BR /&gt;
&lt;BR /&gt;
number          value&lt;BR /&gt;
1                    12&lt;BR /&gt;
2                    23&lt;BR /&gt;
3                    45&lt;BR /&gt;
&lt;BR /&gt;
While executing  the sas programm ask the number and print that record only&lt;BR /&gt;
&lt;BR /&gt;
i.e you give 1&lt;BR /&gt;
&lt;BR /&gt;
then output like this&lt;BR /&gt;
&lt;BR /&gt;
Number Value&lt;BR /&gt;
1            12&lt;BR /&gt;
***************&lt;BR /&gt;
i.e you give 2&lt;BR /&gt;
&lt;BR /&gt;
then output like this&lt;BR /&gt;
&lt;BR /&gt;
Number Value&lt;BR /&gt;
2            23</description>
      <pubDate>Thu, 04 Oct 2007 07:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/while-executing-the-sas-programm-ask-the-record-no-and-print/m-p/4935#M1975</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-10-04T07:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: while executing the sas programm ask the record no and print that recor</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/while-executing-the-sas-programm-ask-the-record-no-and-print/m-p/4936#M1976</link>
      <description>Here is an example:&lt;BR /&gt;
&lt;BR /&gt;
data test;&lt;BR /&gt;
    input number 1 value $3-4;&lt;BR /&gt;
cards;&lt;BR /&gt;
1 12&lt;BR /&gt;
2 23&lt;BR /&gt;
3 45&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
%macro pr(lineNum);&lt;BR /&gt;
proc print data=test(firstobs=&amp;amp;lineNum obs=&amp;amp;lineNum);&lt;BR /&gt;
run;&lt;BR /&gt;
%mend;&lt;BR /&gt;
options mprint;&lt;BR /&gt;
%pr(4);</description>
      <pubDate>Thu, 04 Oct 2007 08:57:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/while-executing-the-sas-programm-ask-the-record-no-and-print/m-p/4936#M1976</guid>
      <dc:creator>Anitha_SAS</dc:creator>
      <dc:date>2007-10-04T08:57:03Z</dc:date>
    </item>
  </channel>
</rss>

