Hi Experts,
Is it possible to convert below mentioned sql code to data step. i can't use sql in my coding. Please help.
proc sql; create table safety.test as select distinct project, employee, supervisor, team, qcdate, hub, COMP, COMPERR, sum(COMP,COMPERR) as sumcomp, (COMP/(COMP+COMPERR)) AS CasePercentage from (select distinct project, employee, supervisor, team, qcdate, hub, sum(input(Case_ID_for_QCCOMP,BESt12.)) as COMP, sum(input(Case_ID_for_QCCOMPERR,BEST12.)) as COMPERR FROM safety.stag3 group by project, employee, supervisor, team, qcdate, hub ) quit;
Thanks
... View more