I can use SAS code. I need to join to tables, the columns in table 1 changes all the time and I need to get always all the columns from table 1 and the ones from table to that are not in table 1. PROC SQL; CREATE TABLE WORK.xxx(label="QUERY_FOR_CONTABILIDAD") AS SELECT t1.xxx1, t1.xxx2, t1.xxx3, t2.xxx11, t2.xxx4 FROM WORK.QUERY_FOR_CONTABILIDAD_0001 t1 INNER JOIN WORK.COPIA_DE_LISTADO_DE_CUENTAS_CONT t2 ON (t1.Cuenta_contable = t2.CUENTA); QUIT; The idea es I hope this more clear. Thanks!
... View more