Is there a way to check for the existance of a required dataset and have two branches of code to handle:
a: Input Dataset exist
b: Input Dataset does not exist
A general outline of what I am trying to do is this:
a: Input Dataset exist
b: Input Dataset does not exist
A general outline of what I am trying to do is this:
Code:
%let fileIn = "c:\temp\filename.txt";
%if FILEEXISTS(fileIN) %then %do;
[COLOR=green] /* Code segment 1 */
/* DATA STEP 1a */
/* Data STEP 2a */ [/color]
%else %do;
[COLOR=green] /* Code segment 2 */
/* DATA STEP 1b */
/* DATA STEP 2b */ [/color]
%end;