SASUnit Examples  Version 1.5.0
nobs.sas File Reference

Return number of observations in a SAS dataset. More...

Go to the source code of this file.

Detailed Description

Return number of observations in a SAS dataset.

Return number of logical observations (deleted obeservations are not counted) in a SAS dataset. In case of an invalid dataset specification, a blank will be returned.

Example: %put %nobs(dataset);

Version
$Revision: 315 $
Author
$Author: klandwich $
Date
$Date: 2014-02-28 10:25:18 +0100 (Fr, 28 Feb 2014) $
See Also
For further information please refer to SASUnit User's Guide
$HeadURL: https://svn.code.sf.net/p/sasunit/code/trunk/example/saspgm/nobs.sas $
Parameters
dataSAS dataset to count observations from
Returns
number of observations in input dataset

Definition in file nobs.sas.