BookmarkSubscribeRSS Feed
abdulla
Pyrite | Level 9

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

4 REPLIES 4
Reeza
Super User
Don't start a new question for this, stay with the previous one and post the example data as per my previous instructions please.
abdulla
Pyrite | Level 9
Mr Reeza. I am in a hurry to finish my work and seeking for help. I don't really have time now to go through so many things, Could you please give me code so that I can finish my things.
VDD
Ammonite | Level 13 VDD
Ammonite | Level 13

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

ballardw
Super User

@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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 4 replies
  • 1100 views
  • 1 like
  • 4 in conversation