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 2003, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 22 May 2003 12:17:34 -0600
Reply-To:   William Kossack <kossackw@NJC.ORG>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   William Kossack <kossackw@NJC.ORG>
Organization:   Posted via Supernews, http://www.supernews.com
Subject:   Re: proc report ordering rows
Content-Type:   text/plain; charset=us-ascii

the problem the field I'm having trouble with is a date if I put order=data or FORMATTED I get garbage

proc report data=data3 out=nam nowd; column VolNo Result_date varnam; define VolNo / order 'Volunteer Number' width=10; define Result_date /order=data format=datetime7. width=10; define varnam/ order format=f10.3 width=15; run;

gives 01jan60 for each value

If I comment out the define for Result_date I at least get the result date for each row but the orders are off

Prasad S Ravi wrote:

> William: > > Use ORDER= option in the DEFINE statement. > > Here are several choices. > > ORDER > defines item, which must be a data set variable, as an order > variable. > > ORDER=DATA | FORMATTED | FREQ | INTERNAL > orders the values of a group, order, or across variable according to > the specified order, where > > DATA > orders values according to their order in the input data set. > > FORMATTED > orders values by their formatted (external) values. By default, > the order is ascending. > > FREQ > orders values by ascending frequency count. > > INTERNAL > orders values by their unformatted values, which yields the > same order that PROC SORT would yield. This order is operating > environment-dependent. This sort sequence is particularly > useful for displaying dates chronologically. > > Prasad Ravi > > William Kossack > <kossackw@NJC.ORG> To: SAS-L@LISTSERV.UGA.EDU > Sent by: "SAS(r) cc: > Discussion" Subject: proc report ordering rows > <SAS-L@LISTSERV.UGA.E > DU> > > 05/22/2003 10:03 AM > Please respond to > William Kossack > > I have a report from proc report > > How do I order the values in a column so that the values come out in > sorted order?


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