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: Call for Content

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!

Submit your idea!

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