Hi, Eric:
Play around with the DETAILS option on the PROC DOCUMENT LIST statement. In this example, I also put an ODS OUTPUT statement into the example so you could see that the document info can go into a dataset (if for example, you wanted to make some macro variables) .
(You can also read the ODS DOCUMENT store directly with a LIBNAME engine, I'm just not sure how/where/whether the LABEL for the BY line is accessible by that method.)
cynthia
PS -- I have discovered that if I use BY groups with the BY variable in the TITLE statement (using Title '#BYVAL(byvar)';) that this title stays with the output object and generally when I rearrange the output objects the titles end up in the right places, even when rearranged.
SAS 9.2 has some new enhancements to ODS DOCUMENT and you can read about them here:
http://support.sas.com/documentation/cdl/en/odsug/59523/HTML/default/odsugwhatsnew902.htm (scroll down the page until you see the section for ODS DOCUMENT)
[pre]
ods listing;
options linesize=150;
ods output Document.Properties=work.myprop;
proc document name=work.shoedoc;
title ' the objects in the document store';
list / levels=3 details;
run;
quit;
proc print data=work.myprop;
title 'what is by group info for the document store';
var path type label;
run;[/pre]