Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SAS Include error

Status
Not open for further replies.

ad2

Technical User
Dec 31, 2002
186
US
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top