DATA Step, Macro, Functions and more

proc print

Reply
Contributor
Posts: 50

proc print

hi,

 

Proc print data=Nz noobs;
By decreasing Probability;
id Probability;
Var Client Champ Modified Tot_Budget Digi_Budget;
sum Tot_Budget Digi_Budget;
run;

 error :ERROR: Variable DECREASING not found.??

what should be the code ?

Super User
Posts: 7,866

Re: proc print

"decreasing" is not a SAS keyword, therefore SAS assumes it is a variable name.

You probably meant "descending".

It is very helpful to read the documentation:

BY Statement

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 1 reply
  • 184 views
  • 0 likes
  • 2 in conversation