If you need to count how many fields are missing across a row, use these specialized functions:
Use a blank space enclosed in quotes. if name = ' ' then flag = "Missing"; Use code with caution. Copied to clipboard 2. Checking Multiple Variables at Once Check For Null Values In Sas
If you want to audit an entire dataset rather than filtering row-by-row, use PROC FREQ or PROC MEANS. Missing Values in SAS - ListenData If you need to count how many fields
total_miss = cmiss(of _all_); /* Checks every variable in the row */ Use code with caution. Copied to clipboard Check For Null Values In Sas