Help using Base SAS procedures

Is there any auto macro or SAS function can return the SAS code's row?

Reply
Regular Contributor
Posts: 222

Is there any auto macro or SAS function can return the SAS code's row?

Hello averyone,

If we use "num " command we can show the rows number of each row in SAS code.

My question is Is there any auto macro or SAS  function can record/return the row number?

/*SAScode_one.sas*/

  ........

165 proc transpose data = one out = two;

166 by LN_NBR;

167 id StaffID;

168var STAFF_INDIV_ID;

169 run;

.......

in the example above,transpose statement's row number is 165.

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..

Thanks!

Mike

PROC Star
Posts: 7,471

Re: Is there any auto macro or SAS function can return the SAS code's row?

Posted in reply to Mike_Davis

I'm not sure if this provides exactly what you are looking for, but take a look at:

http://analytics.ncsu.edu/sesug/1999/104.pdf

Ask a Question
Discussion stats
  • 1 reply
  • 176 views
  • 0 likes
  • 2 in conversation