Hi:
First, comparisons are case sensitive. Your object is not called 'note' -- the internally stored name of the note object will be something like what's shown in the path and the Type value is mixed case:
[pre]
Obs Path Type
------------------------------------------------------------------------------
15 \GLM#1\LSMEANS#1\row#1\Note#1 Note
20 \GLM#1\LSMEANS#1\col#1\Note#1 Note
25 \GLM#1\LSMEANS#1\row_col#1\Note#1 Note
[/pre]
...so the string 'note' will NEVER be found as the value of _TYPE_ and the note object will never be deleted.
I probably would have taken a slightly different approach. I think I would have just done a replay like this:
[pre]
ods pdf file='c:\temp\replay_where_NE.pdf';
proc document name=xxxxxx.yyyyyyyy;
replay ^(where=(_type_ ne 'Note')) ;
run;
quit;
ods _all_ close;
[/pre]
If you need to do rearranging, or you want to make an output object without the note then you could go the other route, but a simple REPLAY will leave the original output object intact and will allow you to send the output to your destination with the least amount of effort.
cynthia
... View more