SASUnit Examples  Version 1.5.0
asserttableexists.sas File Reference

Check whether a certain data set, view or catalogue exists. More...

Go to the source code of this file.

Detailed Description

Check whether a certain data set, view or catalogue exists.

Setting the optional parameter i_not to 1 allows to test whether a certain data set, view or catalogue does not exist.
Step 1: Check whether library has been assigned successfully.
Step 2: Check for existence with exist function

Version
$Revision: 316 $
Author
$Author: akirchmann $
Date
$Date: 2014-03-02 10:20:58 +0100 (So, 02 Mrz 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/asserttableexists.sas $
Parameters
i_libreflibrary in which the test candidate can be found
i_memnamename of data set, view or catalogue to be tested
i_targetoptional: Explicit test for existence of a dataset,view or catalogue (Possible arguments: data, view, catalog). If i_target is not given data will be used as default.
i_descdescription of the assertion to be checked
default: "Check for existence of a specific dataset"
i_notoptional: negates the assertion, if set to 1. Set to 0 no negation takes place. If the library hasn't been assigned successfully parameter i_not has no effect.

Definition in file asserttableexists.sas.