Data set growth has 50K records
here are sample data set looks like, I would like to compare by node,period of growth value (REC1-Rec2)> +-5000 the select the Node or display the node
this needs to repeated all the records by node and period only
STRATEGY | NODE | Period | Fast_GROWTH_DAY_NUM | GROWTH_VALUE |
Mar9QF Strategy | 892922 | 1 | 1 | 32468.1295 |
MML Strategy | 892922 | 1 | 1 | 32468.1295 |
MML Strategy | 892922 | 2 | 1 | 36007.7485 |
Mar9QF Strategy | 892922 | 2 | 1 | 36007.7485 |
Mar9QF Strategy | 892922 | 3 | 1 | 36007.7485 |
MML Strategy | 892922 | 3 | 1 | 36007.7485 |
MML Strategy | 892922 | 4 | 1 | 36007.7485 |
Mar9QF Strategy | 892922 | 4 | 1 | 36007.7485 |
How to do this SAS
In this sample data, can you indicate which data you want to compare with which data?
Please post data in usable form and show what you expect as result.
The lag-function can be used to access values in prior observation(s).
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.