Hi:
Without seeing what's in your WORK.RESULTS, I have no idea why your WHERE statement does not work. If you posted your SAS LOG and the PROC PRINT of WORK.RESULTS, it might be possible to figure out more.
(If you are going to post the SAS log or SAS output, then do read this forum posting
http://support.sas.com/forums/thread.jspa?messageID=27609毙
and, use the [pre] and [/pre] tags around your code and output in order to maintain indenting and spacing.)
Usually ODS OUTPUT gives you messages like your #2 question because you have a duplicate name in a situation where the name is expected to be unique. I could not duplicate that message, even when I put my PROC LOGISTIC inside a macro %DO loop.
cynthia