sort ascending problems

Reply
N/A
Posts: 1

sort ascending problems

In trying to do analyses of one dependant variable with 2 independant variables, (univariate, or means, etc) i get the error message that "variable is not sorted in ascending order" and the analysis stops. However, it is impossible to sort both independant variables in ascending order -- how do i resolve this? never had a problem doing it with the Analyst application.  thanks for help with this simple question

Super User
Posts: 19,791

Re: sort ascending problems

Posted in reply to Chris3065

Post what your code looks like. It seems like a strange error, do you have a BY statement?

Super User
Posts: 11,343

Re: sort ascending problems

Posted in reply to Chris3065

If you are using a BY statement in the analysis, such as BY var1 var2; then SORT using the same by statement;

proc sort data=have; by var1 var2; run;

Ask a Question
Discussion stats
  • 2 replies
  • 175 views
  • 0 likes
  • 3 in conversation