proc sql;
select count(*) into :cntr from NVPLocal.NVP_DOD_Catch ;
%put &cntr;
select distinct qrm_db,strategy,moddate into :Var1,:Var2,:Var3 from NVPLocal.NVP_DOD_Catch ;
%put &Var1;
%put &Var2;
%put &Var3;
run;
proc sql outobs=10;
connect to odbc (DSN=&DSN user=&user password=&pwds);
create table temp as select * from connection to odbc (
select * from [FASTControl].[dbo].[ALM_NVPData]
where qrm_db=&Var1
);
disconnect from odbc;
getting error message
ERROR: CLI describe error: [Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid column name 'Jan21'. : [Microsoft][SQL
Server Native Client 11.0][SQL Server]Statement(s) could not be prepared.