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 (April 2007, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sat, 28 Apr 2007 01:20:49 GMT
Reply-To:     pallabs <u33761@UWE.UGA.EDU>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         pallabs <u33761@UWE.UGA.EDU>
Subject:      Re: Export and Keep Format
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset="utf-8"

Marcio Ribeiro wrote: >Hey all, > >I am using the proc report with FORMAT and OUT options, so I export the >table obtained to the Excel. How do I keep the format to be shown at the >Excel? > >Thanks in advance, > >Márcio

Create a new variable that has a character value equivalent to the formatted value like this: newvar= put(oldvar, formatname);

Look up the PUT function and formats; or do a Google search on How do I convert numeric variables to character in SAS? and just use the same technique.

Regards, Paul Sengupta


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