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 (May 2002, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 8 May 2002 10:04:43 -0700
Reply-To:     Shafi <shafi@SHAFIC.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Shafi <shafi@SHAFIC.COM>
Organization: http://groups.google.com/
Subject:      Re: Proc Dbload - exporting labels
Content-Type: text/plain; charset=ISO-8859-1

shafi@shafic.com (Shafi) wrote in message news:<f58036d8.0205080442.2b1c0e33@posting.google.com>... > Hi, > > I am trying to create an Excel file from SAS using Proc Dbload, and I > can't seem to get it to print the labels instead of the variable > names. > > %LET xlsfile=c:\temp.xls; > > PROC DBLOAD DBMS=xls DATA=indata; > PUTNAMES=y; > LABEL; > LOAD; > PATH="&xlsfile"; > RUN; > > > Any suggestions would be most helpful. > > Thanks > Shafi

Have you tried using RESET ALL; statement along with LABEL to see if that carries the SAS variable labels.

PROC DBLOAD DBMS=xls DATA=indata; PUTNAMES=y; LABEL; LOAD; RESET ALL; PATH="&xlsfile"; RUN;

Prasad Ravi

That did the trick. Note: using the RESET ALL option BEFORE the LABEL statement will still send only the variable name.


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