Those are very different. Based on the data you presented, what number are you expecting? What are the business rules?
For the second approach, I don't see the mean/sd so not sure where you're expecting that to come from and I wouldn't expect that to work. Does it work, or return errors?
I was thinking whether it is :
proc means data=have;
proc freq data=want;
Did you even try these? Do they produce the answer you want? If not, state clearly what is missing from these answers.
Specifically, what is wrong with your Procedure 1? It seems like it does what you are asking (although I'm not 100% clear on what you are asking)
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.