Here my dataset using Missing function both numeric and character flag variable like slno missing course_name missing
data miss_var;
input slno course_name$ 12.;
if missing(course_name) then do ;
put 'course_name is missing.' ;
end;
else if missing(id) then do;
put 'slno is missing.';
end;
datalines;
001 java
002 c++
003 javascript
node js
005
pandas
;
run;
data miss_var; input slno $ course_name $; if missing(course_name) then do ; check= 'course_name is missing.' ; end; else if missing(slno) then do; check= 'slno is missing.'; end; datalines; 001 java 002 c++ 003 javascript . node js 005 . . pandas ; run;
data miss_var; input slno $ course_name $; if missing(course_name) then do ; check= 'course_name is missing.' ; end; else if missing(slno) then do; check= 'slno is missing.'; end; datalines; 001 java 002 c++ 003 javascript . node js 005 . . pandas ; run;
The 2025 SAS Hackathon Kicks Off on June 11!
Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.