BookmarkSubscribeRSS Feed
Mike_Davis
Fluorite | Level 6

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

1 REPLY 1
art297
Opal | Level 21

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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1009 views
  • 0 likes
  • 2 in conversation