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.
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.
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.
Thank you, this worked.
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.
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.
Thank you, it worked !!
Hi...I am doing the same task in the SAS studio and getting the same error. Can you please help me?
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.
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.