%macro test;
/*
%let to_day = input(%substr("07feb07",1,2),2.);
%let to_month = %substr("07feb07",3,3);
%let to_year = %substr("07feb07",6,2);
*/
proc sql;
select ccdate, ccend_date, DM_EXCLUDE_UNTIL_DATE
INTO : cstart separated by ' ',
: cend separated by ' ',
: cexclude...