![]() Chapter Contents |
![]() Previous |
![]() Next |
| EXIST |
| Category: | SAS File I/O |
| Syntax | |
| Arguments | |
| Details | |
| Examples | |
| See Also |
Syntax |
| EXIST(member-name<,member-type>) |
| ACCESS | an access descriptor created using SAS/ACCESS software. |
| CATALOG | a SAS catalog or catalog entry. |
| DATA | a SAS data file (default). |
| VIEW | a SAS data view. |
| Details |
EXIST returns 1 if the library member exists, or 0 if member-name does not exist or member-type is invalid. Use CEXIST to verify the existence of an entry in a catalog.
| Examples |
%let dsname=sasuser.houses; %if %sysfunc(exist(&dsname)) %then %let dsid=%sysfunc(open(&dsname,i)); %else %put Data set &dsname does not exist.;
data _null_;
dsname="test.myview";
if (exist(dsname,"VIEW")) then
dsid=open(dsname,"i");
else put dsname 'does not exist.';
run;
| See Also |
| Functions:
|
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.