08-28-2012 10:27 AM
I've run into a problem with a filename statement hanging all of the sudden. This code ran fine in the past but when I submit this code, SAS hangs at "Running..." Any ideas on what it could be?
filename mymac "***directory path***";
%include mymac ('*.sas');
Here's my setup. SAS 9.2 on UNIX. Enterprise Guide 4.3
08-28-2012 11:33 AM
Probably there is unbalanced quotes or other programming issue in the files that you are trying to %INC.
How controlled is write access to that directory? Do you have version control on the files?
If it used to work then you can probably start by concentrating on the files that have been modified since it last worked.
You could look at what it is trying to read by using a data step to read the files instead of %INC.
data allmacs (compress=yes);
length fname filename $200 text $1000 ;
infile mymac('*.sas') lrecl=1000 truncover filename=fname;
input text $char1000.;
08-28-2012 11:38 AM
The SAS code is running on the Unix server, so the FILENAME must reference a directory on the Unix server.
If the file name is known on the PC (EGuide) side, but not on the Unix side, then the disk will not be seen by Unix and it might hang (as Tom described). Just being able to navigate to it with 'my computer' is not sufficient to tell if it is known to the Unix server.
You probably need to check with your local tech support people.