Thanks, you helped me again! Your solution worked perfectly. Let me know if you are ever in Jax, I owe you a couple beers. On a side note, I am not sure why this doesnt work: BEG = %sysfunc(PUTN(%eval(%sysfunc(date())-45), yymmdd10.)); %unquote(%str(%')&BEG%str(%')); END = %sysfunc(PUTN(%eval(%sysfunc(date())-1), yymmdd10.)); %unquote(%str(%')&END%str(%')); It outputs what I want, but the Proc SQL is unable to get the information with it. Oh well, i think the Hai.kuo's cats solution is more straightforward anyways, and I will use it in the future.
... View more