Date: Tue, 15 Feb 2011 08:18:57 -0600
Reply-To: Joe Matise <snoopy369@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Joe Matise <snoopy369@GMAIL.COM>
Subject: Re: proc contents with selected datasets?
In-Reply-To: <201102150030.p1EIRnhV015012@willow.cc.uga.edu>
Content-Type: text/plain; charset=ISO-8859-1
Looks to me that you cannot do what you want directly, as you have the
choice of 1 dataset or all datasets. The only way I could think of getting
precisely what you want in terms of output would be to create a bunch of
views in a new libname and use _all_ there; or to create the full output
using _ALL_ and then edit the output programatically, taking advantage of
the fact that it creates a new page for each dataset (As far as I can
tell). Finally, you could gen up code to do the DIRECTORY only for _all_,
and then do individual proc contents for each dataset you actually want.
-Joe
On Mon, Feb 14, 2011 at 6:30 PM, Ya Huang <ya.huang@amylin.com> wrote:
> Hi there,
>
> Is there a real simple way to do something like this:
>
> proc contents data=sashelp._all_;
> run;
>
> Except that _all_ is list of selected datasets, such as
> all those start abc:,
>
> I'd like to keep the typical layout of proc contents: this first
> section is directory level list, then followed by dataset level details.
>
> Thanks
>
> Ya
> PS. I can certainly generate a list based on meta data, but then
> the output layout will be different.
>
|