Hi: That syntax shown in your link for the DATA step is still pre-production. I'm not sure that the techniques illustrated work as you expect for footnotes. Also, the syntax could have changed between SAS 9.3 and when that suggestion was posted. #BYVAL doesn't work with ODS TEXT=. It makes sense if you think about it. BY statements work within one procedure and how it processes data. But, the ODS TEXT= statement sits "outside" any single procedure call. You could "macroize" your program to do each BY group separately, which would allow you to still use #BYVAL for each footnote and/or change the title for each BY group, using %IF conditional logic. Look on page 6 of this paper to see the SORTANDPRINT macro program for some idea of how macro variables can be used in the TITLE statement: http://www2.sas.com/proceedings/sugi29/243-29.pdf You'd only need to add a bit of code to get a BY statement and and #BYVAL info working in the macro program. cynthia
... View more