After executing the code below,
proc sql;
create table dis_entity_id as select distinct ENTITY_ID format=$ENTIT. from INSURANCE_CONTRACT;
quit;
I got Output as ,
DKV Seguros DKV Belgien NULL RGO Schadn/Unfall RGO Hestia
Now I want the Output as
DKV Seguros/DKV Belgien/NULL/RGO Schadn Unfall/RGO Hestia
so I ran the code below to get the desired output
data reqd_vars (drop=ENTITY_ID);
set dis_entity_id end=last_record;
by ENTITY_ID;
/* format ENTY_NM $ENTIT.;*/
length ENTY_NM $50;
retain ENTY_NM;
if first.ENTITY_ID then
ENTY_NM=catx('/',ENTY_NM,ENTITY_ID);
if last_record then
output;
run;
But the Output which I got is 54009/54010/580001/58001/60011 instead of DKV Seguros/DKV Belgien/NULL/RGO Schadn Unfall/RGO Hestia. May I know why the Format is not applied in the bew variable ENTY_NM?
... View more