LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2008, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 28 Oct 2008 09:34:38 -0400
Reply-To:     "Howard Schreier <hs AT dc-sug DOT org>"
              <schreier.junk.mail@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Howard Schreier <hs AT dc-sug DOT org>"
              <schreier.junk.mail@GMAIL.COM>
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:

>hello, > >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: > >variable1<paragraph mark> >variable2<paragraph mark> > >so, how can i go about creating a file with the same format in sas? > >many thanks for any direction you can give me. >christine

Try something like this:

data _null_; set sashelp.vcolumn; file 'mywordfile.doc'; where libname='SASHELP' and memname='CLASS'; put name; run;


Back to: Top of message | Previous page | Main SAS-L page