SASUnit Examples  Version 1.5.0
assertrecordcount.sas File Reference

This assert checks whether a certain number of records exist in a data set specified by parameters i_libref and i_memname. More...

Go to the source code of this file.

Detailed Description

This assert checks whether a certain number of records exist in a data set specified by parameters i_libref and i_memname.

Furthermore a where condition can be specified (if not specified set to 1) as well as the number of expected records in the data set that meet the given where condition.

Version
$Revision: 346 $
Author
$Author: klandwich $
Date
$Date: 2014-11-16 06:51:26 +0100 (So, 16 Nov 2014) $
See Also
For further information please refer to SASUnit User's Guide Here you can find the SASUnit documentation, release notes and license information.
$HeadURL: https://svn.code.sf.net/p/sasunit/code/trunk/saspgm/sasunit/assertrecordcount.sas $
Parameters
i_libreflibrary containing the data set
i_memnamedata set to be tested
i_operatoroptional: logical operator to compare i_recordsExp and l_actual; if not specified "EQ" is assumed as default.
i_recordsExpnumber of records expected: a numeric value >= 0
i_whereoptional: where condition to be checked. Set to 1 by default.
i_descdescription of the assertion to be checked
default: "Check for a specific number of records"

Definition in file assertrecordcount.sas.