Desktop productivity for business analysts and programmers

Include statement with location outside unix

Reply
Occasional Contributor
Posts: 6

Include statement with location outside unix

I have SAS EG and I want to use the %include statement to call a SAS script that is saved outside UNIX (in a shared drive). I would like to do this without having to move the scripts into UNIX.

 

Super User
Posts: 23,354

Re: Include statement with location outside unix

SAS has to have a way to access the file, so it has to be somewhere it has access to via a shared drive or on unix. If the 'shared drive' is not accessible from SAS you have to move it from Unix. To determine what's accessible you'll have to discuss this with your IT team. 

 


@tjsari wrote:

I have SAS EG and I want to use the %include statement to call a SAS script that is saved outside UNIX (in a shared drive). I would like to do this without having to move the scripts into UNIX.

 


 

Super User
Posts: 9,932

Re: Include statement with location outside unix

%include works from the file system, so any resource that you want to include from has to be mounted on your UNIX.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Ask a Question
Discussion stats
  • 2 replies
  • 96 views
  • 0 likes
  • 3 in conversation