/********************************************************************************/
/* 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 */
/*----------------*/
Dive into keynotes, announcements and breakthroughs on demand.
Explore Now →
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.