Date: Tue, 11 Feb 2003 08:10:11 -0500
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
Subject: Re: How to count observation?
Content-type: text/plain; charset=us-ascii
Check out the view SASHELP.VTABLE. In there you will find libname, memname
and nobs for each member. Just select on the libname you want.
From: Saqi <saqi2000@TOTALISE.CO.UK>@LISTSERV.UGA.EDU> on 02/11/2003 07:53
Please respond to Saqi <saqi2000@TOTALISE.CO.UK>
Sent by: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
Subject: How to count observation?
I have to count number of observations in each dataset in library called
departments. I need to count number of employee in each department. I have
this macro to do the job.
if 0 then set &dsn nobs=count;
call symput('nobs', left(put(count, 8.)));
but the problem is I have to run over library departments how would I do
so it goes and searches the department library and counts number of
observation in each data set and returns the name of the data set and
Could anyone help please?