DATA want; SET have ; FORMAT Open_Dt DATE9.; Open_Dt= PUT (TAKE_UP_DATE_CD,YYMMDD10.) ; RENAME DIFF =DIFF_AMT ; RUN
can you please assist in converting this a numberic value to date format
You answered one question, but not the other. Without knowing the variable name you are talking about, we have to guess which variable you mean.
@PaigeMiller took a good guess. I suggest you try his solution. But be consistent in your choice of names for the new variable: new_date vs. newdate.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.