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

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

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
  • 17 replies
  • 4909 views
  • 3 likes
  • 4 in conversation