I'm trying to build a data model in SAS structures for Financial System Data. The idea is to keep IDs in a table as character expression and then build a proc sql
with INNER JOIN
to them from another table - the LIKE
should get IDs
which start with a 'ID%'
expression. The proc sql
should look like this:
proc sql;
SELECT I.*
FORM tableWithIDs X INNER JOIN tableWithData I
ON I.ID LIKE X.ID||'%'
;
quit;
Unfortunately, it should look like this: ... LIKE 'X.ID%'
Is there a way to build such expression in SAS code?