*Using the SAS data set SASHELP.Cars, compute the mean and standard deviation for Horsepower
broken down by Make and Origin. Include the number of nonmissing and missing values in the output and print all statistics to one decimal place. Use the PRINTALLTYPES option to see all possible combinations of the CLASS variables
Please show the code you have tried, the log from running the code, and describe what is going wrong (errors? wrong result?)
That will make it easier for people to help you.
Please also provide a meaningful subject that describes the problem, please change the subject in your ORIGINAL post. ALmost every post here could have the subject "I can't figure it out" and so this is not a meaningful subject line.
Since this sounds a lot like homework what procedures were recently covered in your class/ training?
I can see this done in summary procedures like Proc Means/Summary/Univariate and reporting procedures Report or Tabulate.
Which I would use might depend on other requirements or common appearance with other output.
The option Printalltypes seems to indicate the instructor expects you to use Proc Means, and the "all possible combinations of Class variables" implies the presence of a CLASS statement (grouping variables).
Style comment: "number of missing or nonmissing" should be integers. Decimal places with integer counts are pretty strange in general though it is easy to force such.
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.