Hi, I have a dataset with character and numeric variables (var1, var2, ....) and one of the variables is called 'fy' which takes on the character values of '2022','2023', and '2024'. I want a dataset as follows below. The value 0.7 ,for example, represents the percentage of values of var1 that is missing or blank. In this case, 70% of var1 values in the dataset is missing or blank. Code should be able to handle whether var1 is character or numeric. Thanks! fy2022 fy2023 fy2024 var1 0.7 0.65 0.6 var2 0.4 0.35 0.3 var3 0.5 0.45 0.4 var4 0.35 0.3 0.25 var5 0.6 0.55 0.5 I tried using proc freq data=out.mydataset; tables _all_/list missing; format _character_ $missing. _numeric_ missing.; run;
... View more