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-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 lock in 2025 pricing—just $495!

Register now

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