BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Tom
Super User Tom
Super User

I opened a ticket with SAS Support to let them know that the WARNING message was displaying the wrong physical filename.

jreancsu
Calcite | Level 5

Any chance you could post your PERSON and DIAG files and where they go?  Also, do you just smash the run button the v2217o1p.sas file directly?  It looks like the call to the main macro supplies default parameter values.


%V2217O1M(INP      =IN1.PERSON,
           IND      =IN2.DIAG,
           OUTDATA  =OUT.PERSON,
           IDVAR    =HICNO,
           KEEPVAR  =HICNO &INPUTVARS &SCOREVARS &DEMVARS 
                     &HCCV22_list79 &CCV22_list79, 
           SEDITS   =1,
           DATE_ASOF="1FEB2018"D);


This is my setup:
cms-risk-sas-screenshot.JPG

cms-person-file.JPGcms-diag-file.JPG

 

When I run it, I just get a bunch of "ERROR 180-322: Statement is not valid or it is used out of proper order." messages, and one "ERROR: File OUT.PERSON.DATA does not exist" message.  Do you have to make the output file yourself?

jreancsu
Calcite | Level 5

I got the following working (omg finally):


cms-working-inputs1.JPGcms-working-inputs2.JPGcms-working-inputs3.JPG

 

I think the lowercase column names matter.
There was also a random character at the bottom of the scorevar.sas file that had some messed up encoding.

All-in-all, it was a pretty absurd amount of trial and error to get this thing working.  It'd be nice if CMS would put out a ready-to-run SAS program along with example input/output data.  Special shout-out to the National Bureau of Economic Research for putting this page together with examples: http://www.nber.org/data/cms-risk-adjustment.html

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 17 replies
  • 6968 views
  • 3 likes
  • 4 in conversation