BookmarkSubscribeRSS Feed
mdavidson
Quartz | Level 8

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

4 REPLIES 4
Tom
Super User Tom
Super User

Make sure the disk is on line.

mdavidson
Quartz | Level 8

I'm able to navigate to the drive, so it is definitely mounted and online.

Any other ideas?

Tom
Super User Tom
Super User

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.;

  filename=fname;

run;

Doc_Duke
Rhodochrosite | Level 12

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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 794 views
  • 0 likes
  • 3 in conversation