BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
alepage
Barite | Level 11

hello,

 

I would like to know if there is a way to convert a date (ddmmyyn8) to another date format (ddmmyy10) using proc sql alter table modify?

Regards,

 

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

@alepage wrote:

Hello,

 

I am not familiar with proc dataset.

 

However, I have tried this peace of code and it seems to work.

 

Is It correct?

 

 

proc datasets lib=work;
modify BaseAV2017;
format EffDate yymmdd10.;
quit;


This is correct. It only changes the header information of the dataset and is therefore very efficient.

View solution in original post

4 REPLIES 4
alepage
Barite | Level 11

Hello,

 

I am not familiar with proc dataset.

 

However, I have tried this peace of code and it seems to work.

 

Is It correct?

 

 

proc datasets lib=work;
modify BaseAV2017;
format EffDate yymmdd10.;
quit;

Kurt_Bremser
Super User

@alepage wrote:

Hello,

 

I am not familiar with proc dataset.

 

However, I have tried this peace of code and it seems to work.

 

Is It correct?

 

 

proc datasets lib=work;
modify BaseAV2017;
format EffDate yymmdd10.;
quit;


This is correct. It only changes the header information of the dataset and is therefore very efficient.

alepage
Barite | Level 11

Thanks a lot for your Help Kurt

Best Regards

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 2376 views
  • 0 likes
  • 2 in conversation