BookmarkSubscribeRSS Feed
BrahmanandaRao
Lapis Lazuli | Level 10

Hi Guys

 

These following function can work(use)  in proc sql 

  • Ranking Window Functions
    RANK(), DENSE_RANK(), ROW_NUMBER(), NTILE()
  • Value Window Functions
    LAG(), LEAD(), FIRST_VALUE(), LAST_VALUE()
5 REPLIES 5
Kurt_Bremser
Super User

And what is your question?

 

If you want to know where and how a function works, read up on its documentation (looking into the documentation will also reveal functions that are not available in SAS in the first place).

LinusH
Tourmaline | Level 20

If you are in need for such functions, please chime in with (Like!) this Ballot:

https://communities.sas.com/t5/SASware-Ballot-Ideas/Add-window-functions-in-SAS-SQL/idi-p/462556#com...

 

Data never sleeps
Ksharp
Super User
These are all ORACEL function, but NOT available in PROC SQL.
You can use these functions in Data Step or PROC RANK
jackyboris
Calcite | Level 5

Honestly, people had been asking window functions more than a decade ago, and yet we still don't freaking have some common functions. Is there a legit reason why SAS does not add new features for its users?? 

LinusH
Tourmaline | Level 20

What you can do @jackyboris:

  • vote for the ballot (link above)
  • contact your SAS representative to give this feedback.
Data never sleeps

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
  • 5 replies
  • 2319 views
  • 3 likes
  • 5 in conversation