data have ;
infile cards ;
input id $ total ;
cards ;
1 12
2 .
3 14
4 16
5 .
;
data want ;
set have ;
/* Use the Missing Function */
/* https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p06ybg84o0asa4n17l9ieauk58hb.htm */
if not missing(total) then fun=1 ;
else fun=0 ;
run ;
The 2025 SAS Hackathon has begun!
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.