Hi, I have a format with all values. How do I get counts and % for these values from a dataset ? If the values are not present in dataset, i need count and percent as 0 Example: proc format library = work;
value $car_type
"Hybrid" = "Hybrid Drivetrain"
"SUV" = "Sports Utility Vehicle"
"Sedan" = "4-door Sedan"
"Truck" = "Pickup Truck"
"Wagon" = "Station Wagon"
"Testc" = "Test value"
;
run;
But when I run proc feq, I need frequency and percent for type as Testc. Even though it is 0 proc freq data = sashelp.cars;
tables type / missing;
format type $car_type.;
run; I came across 1 article where it says its not possible, but it dated 2015. So wondering if there is any new feature added to SAS. I'm using SAS release: 9.04. Solved: How To - Create Count of Variable with Missing Val... - SAS Support Communities
... View more