Date: Tue, 28 Oct 2008 09:34:38 -0400
Reply-To: "Howard Schreier <hs AT dc-sug DOT org>"
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Howard Schreier <hs AT dc-sug DOT org>"
Subject: Re: want proc contents to create a file that can be used to
create an index in a word document
On Mon, 27 Oct 2008 14:03:34 -0400, Christine Peloquin <cep@STUNTZ.ORG> wrote:
>i am using sas to make a codebook for a study. i would like to create an
>index to reference which pages the variables are on. so, basically, i just
>need a word document with the names of the variables. i have unsuccessfully
>tried used proc contents to create such a file (along with ods) but have not
>had any luck. the file i create has extra blanks and formatting in it -
>which causes a problem when i try to use it to create the word index (INSERT
>->INDEX AND TABLES -> select AUTOMARK -> open up file created by SAS).
>if i manually create a word file just listing the variable names (one per
>line), i can successfully use this file to create the codebook index. the
>format of this manual word document is:
>so, how can i go about creating a file with the same format in sas?
>many thanks for any direction you can give me.
Try something like this:
where libname='SASHELP' and memname='CLASS';