BookmarkSubscribeRSS Feed
sas_chobo
Calcite | Level 5

Hi, I'm a complete newbie to SAS and I'm finding it very difficult to fix errors whenever there is one.

I've been trying to use the following statement:

%include 'D:/chisq_plot.sas';

%chisq_plot(dataset_name, x1 x2);

to test the multivariate normality graphically using a chi-square plot.

However, I am using MacOS and hence I cannot use the file directory 'D:/chisq_plot.sas'.

Instead I used something like this: '/folders/myfolders/chisq_plot.sas' since I'm using mac.

 

However I keep on getting errors saying:

ERROR: Cannot open %INCLUDE file /folders/myfolders/chisq_plot.sas.
ERROR 180-322: Statement is not valid or it is used out of proper order.
 
I am just completely stuck and don't know what to do.
I'd very much appreciate it if anyone could help me with this issue!
 

 

1 REPLY 1
Kurt_Bremser
Super User

So you run the University Edition virtual machine, probably with VirtualBox?

 

You have to put the include file into the shared folder, and be very careful with the spelling of the filename, as both systems (OSX and the Linux of the VM) are case sensitive.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 427 views
  • 0 likes
  • 2 in conversation