DATA Step, Macro, Functions and more

small question on proc freq result display

Accepted Solution Solved
Reply
Contributor
Posts: 61
Accepted Solution

small question on proc freq result display

data have;

input date order @@;

datalines;

20140831 1 20140731 2 20140630 3

;run;

*1. with order control, I can get the descending order on (date);

proc freq ;

table order*date /list missing ;

run;

*2. without order control, I can not get the descending order on (date);

proc freq ;

table date /list missing ;

run;

I am trying to get a descending ordered display on (date) variable.

My question is:

if I don't have the order variable in the data, is there anyway I can display the proc freq result on (date) in a descending order?

Thanks.


Accepted Solutions
Solution
‎10-27-2014 11:36 AM
Regular Contributor
Posts: 180

Re: small question on proc freq result display

Try proc freq order=data;

CTorres

View solution in original post


All Replies
Solution
‎10-27-2014 11:36 AM
Regular Contributor
Posts: 180

Re: small question on proc freq result display

Try proc freq order=data;

CTorres

Contributor
Posts: 61

Re: small question on proc freq result display

thank you, that helps.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 168 views
  • 0 likes
  • 2 in conversation