Asked • 03/15/19

How to count the number of observations in a SAS table?

I am very new to SAS. Now, I have a SAS data table as following: ID score ------------------- 01 1 02 3 03 4 04 2 Is there any way to save the number of observations in this table **using only PROC SORT and DATA step**? I want to hold the value in the log window, which is like "hold N=4" in the SAS log script. Sorry for my unprofessional description. Thanks in advance.

2 Answers By Expert Tutors

By:

Alexander D. answered • 03/15/19

Tutor
5.0 (63)

Experienced Quantitative Analytics Specialist

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.