I have a dataset called "enter" with the following observations
ID Salary
10 1000
20 2000
30 3000
40 4000
I need an output dataset with the following observations
Salary ID Next_row_Salary
10 1000 2000
20 2000 3000
30 3000 4000
40 4000 null
Note. The next salary scenario should be the current observation value for the Next_Row_salary column. If there is no subsequent observation, then the current observation value for the Next_Row_salary column should be "null".
Please help me in creating sas code for this scenario.
source
share