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: 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!

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