Thanks in advance:
I have a series of SAS programs and data txt files in a series of folders. I want to write a main SAS program that has include statements to run each individual SAS program from its folder location.
So here is the set-up of one folder:
Folder labs:
Labs.sas
Labs.txt
Here is the datastep on the labs.sas program
data work.labs;
%let _EFIERR_ = 0;
infile '.\labs.txt';
......
Run;
When I run the Labs.sas program from its folder location it outputs the labs dataset to the work library without any issue.
Here is the include statement I have on the Main.sas program, which is at the R\sas level:
%include 'R\sas\labs\labs.sas';
When I run the main.sas program with the include statement I get the following error in my Log:
ERROR: Physical file does not exist, R:\sas\labs\labs.txt
Any ideas as to why the error happens?
Thanks again,
Ad2
I have a series of SAS programs and data txt files in a series of folders. I want to write a main SAS program that has include statements to run each individual SAS program from its folder location.
So here is the set-up of one folder:
Folder labs:
Labs.sas
Labs.txt
Here is the datastep on the labs.sas program
data work.labs;
%let _EFIERR_ = 0;
infile '.\labs.txt';
......
Run;
When I run the Labs.sas program from its folder location it outputs the labs dataset to the work library without any issue.
Here is the include statement I have on the Main.sas program, which is at the R\sas level:
%include 'R\sas\labs\labs.sas';
When I run the main.sas program with the include statement I get the following error in my Log:
ERROR: Physical file does not exist, R:\sas\labs\labs.txt
Any ideas as to why the error happens?
Thanks again,
Ad2