The code shown generates the output shown. Does it not run for you? I didn't type it out (can't copy and paste from an image) so it seems fine at first glance.
Is there something else you're looking for beyond this?
Go through each line of the code and add your comments to what you think it's doing. Post that back and we'll show you where your understanding may be incorrect.
Because you have two output statements in your data step.
SAS Innovate 2025: Register Now
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9. Sign up by Dec. 31 to get the 2024 rate of just $495. Register now!