I have made a small change, if you see any error, please post the log %macro creation(Value);
Proc Sql;
Create table Target as
select
t2.NUM,
t2.ID,
t2.NCEID,
t4.POLOBJECTID,
t3.PRODUCTVERSIONOBJECTID,
t4.EXTERNALIDENTIFIER as ExternalID,
t4.Value as Value length = &Value. *Change;
from &wrkschema.. lkp_policyinstance t2
inner join &tgtschema.. INS t3
on t2.rpinstid = t3.POLICYINSTANCEID and t2.cdnumpol = '002011216756'
inner join &tgtschema.. POLOBJt4
on t3.identifier = t4.POLINOBJ
Where t4.externalidentifier = &extrniden. and t3.CHECK= &objMotorbike.
;
quit;
%mend;
%creation(Value=40);
... View more