You can use the "Merge Same Name Columns".
dt << Join
( with (data table("B") ),
merge same name columns,
select(),
selectwith(),
include nonmatches(),
by matching columns(IDENTA=IDENTB)
);
You need to take the time to read the JSL documentation in the Scripting Guide
Help==>Books==>Scripting Guide
Jim