BookmarkSubscribeRSS Feed
vem
Calcite | Level 5 vem
Calcite | Level 5

Hi all,

I have a coloumn start_date and end_date 2 coloumns on dateformat9.

I need to group them according to the year for 2016,2015,2014 on  end_date

startdate                   end_date

01nov2015                 30nov2015

01apr2014                  31dec2014

01jan2015                   31oct2015

01jan2016                    31dec2016

01dec2014                    20feb2015

 

Any help will be appriciated.

Thanks.

 

 

 

 

1 REPLY 1
Astounding
PROC Star

There are a few interpretations as to what "group them" might mean:

 

  • Add a variable representing the year
  • Produce a report that lists each year separately
  • Sort the observations in order by the year

Can you be a little more specific about what you are trying to accomplish?

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1 reply
  • 869 views
  • 0 likes
  • 2 in conversation