attached the data and its outputs in excel file.
need code for output1 and output2
What have you tried so far?
Many people here refuse to download Microsoft Office files as they can be a security threat. Please provide sample data as WORKING SAS data step code, which you can type in yourself or you can follow these instructions. Do not provide data by attaching files. Do not provide data as screen captures.
Also, as requested by @PeterClemmensen , show us what you have tried.
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.