BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
pdwivedi08
Fluorite | Level 6

Hi,

 

I'm very new to SAS and I'm trying to run CMS HCC model using SAS ODA. When I run my main macro V2422P1P, I get following error:

262 );
263
264 %* include main macro;
265 %INCLUDE IN0(V2422P1M)/SOURCE2;
WARNING: Physical file does not exist, /home/u61780777/program/V2422P1M.sas.
ERROR: Cannot %INCLUDE member V2422P1M in the aggregate IN0.
266
267 %V2422P1M(INP =IN1.PERSON,
_
180
WARNING: Apparent invocation of macro V2422P1M not resolved.
ERROR 180-322: Statement is not valid or it is used out of proper order.

268 IND =IN2.DIAG,
269 OUTDATA =OUT.PERSON,
270 IDVAR =MBI,
271 KEEPVAR =MBI &INPUTVARS &SCOREVARS &DEMVARS

 

The code of V2422P1P which is creating this error is:


LIBNAME LIBRARY "/home/u61780777/transport";
FILENAME IN0 "/home/u61780777/program"; this line of code is causing the error 
LIBNAME IN1 "/home/u61780777/input";
LIBNAME IN2 "/home/u61780777/input";
LIBNAME INCOEF "/home/u61780777/transport";
LIBNAME OUT "/home/u61780777/output";

 

I've saved all the files in my home directory in SAS ODA as you can see below and tried multiple options but couldn't resolve the error. Any help is very much appreciated.

 

pdwivedi08_0-1658860484948.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
andreas_lds
Jade | Level 19

Please don't double post questions.

 

Files names are case-sensitive. So, if the file is named AGESEXV2, you have to use the exact spelling in sas code.

View solution in original post

6 REPLIES 6
ballardw
Super User

You may want to consider the CASE of the LETTERS used in the NAME of your FILES. I thing that SAS ODA expects external files to be all lower case and referenced as such.

 

pdwivedi08
Fluorite | Level 6

Thank you, this worked.

pdwivedi08
Fluorite | Level 6

Hi,

 

I'm very new to SAS and I'm trying to run CMS HCC model using SAS ODA. When I run my main macro V2422P1P, I get following error:

262 );
263
264 %* include main macro;
265 %INCLUDE IN0(V2422P1M)/SOURCE2;
WARNING: Physical file does not exist, /home/u61780777/program/V2422P1M.sas.
ERROR: Cannot %INCLUDE member V2422P1M in the aggregate IN0.
266
267 %V2422P1M(INP =IN1.PERSON,
_
180
WARNING: Apparent invocation of macro V2422P1M not resolved.
ERROR 180-322: Statement is not valid or it is used out of proper order.

268 IND =IN2.DIAG,
269 OUTDATA =OUT.PERSON,
270 IDVAR =MBI,
271 KEEPVAR =MBI &INPUTVARS &SCOREVARS &DEMVARS

 

The code of V2422P1P which is creating this error is:


LIBNAME LIBRARY "/home/u61780777/transport";
FILENAME IN0 "/home/u61780777/program"; this line of code is causing the error 
LIBNAME IN1 "/home/u61780777/input";
LIBNAME IN2 "/home/u61780777/input";
LIBNAME INCOEF "/home/u61780777/transport";
LIBNAME OUT "/home/u61780777/output";

 

I've saved all the files in my home directory in SAS ODA as you can see below and tried multiple options but couldn't resolve the error. Any help is very much appreciated.

 

 

pdwivedi08_0-1658861289303.png

 

andreas_lds
Jade | Level 19

Please don't double post questions.

 

Files names are case-sensitive. So, if the file is named AGESEXV2, you have to use the exact spelling in sas code.

pdwivedi08
Fluorite | Level 6

Thank you, it worked !!

talha786
Calcite | Level 5

Hi...I am doing the same task in the SAS studio and getting the same error. Can you please help me?

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 6 replies
  • 1202 views
  • 0 likes
  • 4 in conversation