<?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 Is there any auto macro or SAS function can return the SAS code's row? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-any-auto-macro-or-SAS-function-can-return-the-SAS-code/m-p/125062#M34358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello averyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we use "num " command we can show the rows number of each row in SAS code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is Is there any auto macro or SAS&amp;nbsp; function can record/return the row number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*SAScode_one.sas*/&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; ........&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;165 proc transpose data = one out = two;&lt;/P&gt;&lt;P&gt;166 by LN_NBR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;167 id StaffID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;168var STAFF_INDIV_ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;169 run;&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the example above,transpose statement's row number is 165.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The aim is when run the SAS code ,we can see the log ,I want to add some information(such as current running code's row number in the code) show on the log..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2012 22:00:46 GMT</pubDate>
    <dc:creator>Mike_Davis</dc:creator>
    <dc:date>2012-05-23T22:00:46Z</dc:date>
    <item>
      <title>Is there any auto macro or SAS function can return the SAS code's row?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-any-auto-macro-or-SAS-function-can-return-the-SAS-code/m-p/125062#M34358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello averyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we use "num " command we can show the rows number of each row in SAS code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is Is there any auto macro or SAS&amp;nbsp; function can record/return the row number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*SAScode_one.sas*/&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; ........&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;165 proc transpose data = one out = two;&lt;/P&gt;&lt;P&gt;166 by LN_NBR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;167 id StaffID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;168var STAFF_INDIV_ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;169 run;&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the example above,transpose statement's row number is 165.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The aim is when run the SAS code ,we can see the log ,I want to add some information(such as current running code's row number in the code) show on the log..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 22:00:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Is-there-any-auto-macro-or-SAS-function-can-return-the-SAS-code/m-p/125062#M34358</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-05-23T22:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any auto macro or SAS function can return the SAS code's row?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-any-auto-macro-or-SAS-function-can-return-the-SAS-code/m-p/125063#M34359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if this provides exactly what you are looking for, but take a look at:&lt;/P&gt;&lt;P&gt;&lt;A href="http://analytics.ncsu.edu/sesug/1999/104.pdf" title="http://analytics.ncsu.edu/sesug/1999/104.pdf"&gt;http://analytics.ncsu.edu/sesug/1999/104.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 23:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Is-there-any-auto-macro-or-SAS-function-can-return-the-SAS-code/m-p/125063#M34359</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-05-23T23:07:23Z</dc:date>
    </item>
  </channel>
</rss>

