Hello,
I have a character date column (yymmdd10.) in the sas dataset. It has missing values. I have to replace all missing values with empty value ' '.
Trying to make it through proc sql with update statement but nothing happens, column still has missing values
proc sql; update work.char_atg set birthday = '' where missing(birthday) ; quit; run;
Any help would appreciate!
This request does not make much sense.
If the variable is character then "missing" values are already blanks. SAS uses fixed length character variables and pads all values with spaces to defined length.
If the variable is numeric (that is an actual number of days since 1/1/1960) then you can cannot store a character string like a space into the variable. You can change the MISSING option to change how the numeric missing values print.
This request does not make much sense.
If the variable is character then "missing" values are already blanks. SAS uses fixed length character variables and pads all values with spaces to defined length.
If the variable is numeric (that is an actual number of days since 1/1/1960) then you can cannot store a character string like a space into the variable. You can change the MISSING option to change how the numeric missing values print.
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.