Can someone look at this portion of my code below; I'm getting the following errors. I have been at this all morning and cannot get the code to run. Thank you in advance for any advice
intck('month', input('Appointment Effective Date'n, anydtdte10.), input('Appointment Expiration Date'n, anydtdte10.)) as month_dif,
case
when calculated month_dif lt 36 then "Presumed Correct"
when calculated month_dif ge 37 then "Create New Start Date"
end as 'new_start_dt_id_1'n,
case
when calculated month_dif ge 37 then intnx('month', 'Appointment Expiration Date'n, -24, 's')
end as 'new_start_dt'n format=date9.,
case
when calculated 'new_start_dt'n ge today() then "Unknown"
else "" end as 'future_dt_id'n
NPN Number needs the quotes and N as well, ie
'NPN Number'n
EDIT: note this is in more than one place in your code so you need to fix all of them.
I will make sure moving forward that I copy the log for every new error and question.
Thank you again for your time today !!!
And when you post logs, use this button:
This will keep the horizontal position of markers.
The "little running man" next to it is for SAS code, it provides coloring similar to the Enhanced Editor.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.