![]() Chapter Contents |
![]() Previous |
![]() Next |
| DSNEXST |
| Valid: | anywhere |
| OS/390 specifics: | all |
| Syntax | |
| Details | |
| See Also |
Syntax |
| DSNEXST 'physical-filename '; |
| Details |
%macro mydsn;
dsnexst 'my.data.set';
filename myds 'my.data.set'
%if &sysdexst %then %do;
disp=old;
%end;
%else %do;
disp=(new,catlg) space=(cyl,(1,1)) blksize=6160
dsorg=ps recfm=fb lrecl=80 unit=disk
volser='MYVOL';
%end;
%mend mydsn;
%mydsn
%macro copylib; dsnexst 'my.data.library'; %if &sysdexst %then %do; libname mylib 'my.data.library' disp=shr; proc copy in=mylib out=work; run; %end; %mend; %copylib
%macro dsexist(loc);
dsnexst &loc;
%if %sysdexst=0 and &sys99err=1708
%then %do;
%put &loc does not exist;
%else %do;
%put &loc exists;
%end;
%mend;
%dsexist(my.data.set)
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.