/********************************************************************************/
/* Ejemplo para sumar variables con valores missing */
/* Diferencia entre usar el símbolo '+' y la función 'Sum' */
/********************************************************************************/
/*-------------------*/
/* inicio del código */
/*-------------------*/
data prueba;
infile DATALINES dsd missover;
input var1 var2;
cards;
1, .
., 2
5, 9
., .
;
data work.prueba;
set work.prueba;
var_sum_Symbol=var1+var2;
var_sum_Function=SUM(var1,var2);
run;
/*----------------*/
/* fin del código */
/*----------------*/
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.