Hello Experts,
I would like to join conditionally the data : if ctant.ctant_pere is doesn't missing I'm using this key, in other way I'm using ctant.contrac.
But my code is doesn't work, could you tell me where is the problem, please?
proc sql;
create table date_naiss
as select
pers.D_NAISS, sousc.no_pol, coalesce(ctant.ctant_pere,ctant.contrac) as COAL
from dossier sousc,
dossier2 ctant, personne pers where
and sousc.contr = calculated COAL
and ctant.pers = pers.pers;
quit;
Thank you very much!
... View more