Hi I have date which is in format yymmddn8 and informat yymmdd6. I want to convert them into format Best12 and informat 12. Can anyone help me by giving code for that?
I need to merge file by date but my date in two files are formated differently
@abdulla you could get your answers by trying to look at examples that meet your needs on the community. If you have work to do then why not learn how to do the work rather than commanding other to give you code for your needed results. I don't believe anyone here earns wages for assisting you in obtaining results so that you can learn besides SAS employees.
@abdulla wrote:
Hi I have date which is in format yymmddn8 and informat yymmdd6. I want to convert them into format Best12 and informat 12. Can anyone help me by giving code for that?
I need to merge file by date but my date in two files are formated differently
Provide a date
Provide the numeric value you expect them to be.
And them answer why this is a critical task.
Formats and informats are variable properties. You can change them with Format or Informat statements. But likely you mean to change the actual values but you aren't being explicit enough.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.