Hello everyone,
Is it possible to apply this function that I have in Excel in EG?
regards,
Hans
I think you can use a combination of BY group processing and the LAG function to get the results you want.
proc sort data=one;by number;run;
data two;set one;by number; y=lag(code);if first.number then y=.;run;
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 16. Read more here about why you should contribute and what is in it for you!
Submit your idea!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for:
View all other training opportunities.