Date: Wed, 3 Apr 1996 00:18:13 +-1000
Reply-To: Alex Wolf <wolfam@WERPLE.NET.AU>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Alex Wolf <wolfam@WERPLE.NET.AU>
Subject: SAS Hint - How many Observations are there in a Member ?
In SAS 6.11 and possibly SAS 6.10 there is a SAS View in the SASHELP
Libname this View contains Library, Member Name, Number of Observations
and many other items that describe every member and instead of needing to
use the Point, Noobs etc or a proc SQL to count the Observations You could use the
following to count the number of Observations for my Member created in Work
Data Frodo ;
ring = 'gold' ;
output ;
run;
data _null_ ;
SET SASHELP.VTABLE ;
IF MEMNAME = 'FRODO' THEN PUT 'The obs = ' NOBS ;
RUN;
the result: The obs = 1
Cheers
Alex M. Wolf.
|